# HG changeset patch
# User Yuki KODAMA <endflow.net@gmail.com>
# Date 1252423523 -32400
# Node ID 9135209e9ee48b5308889c82c77e31ff2a458758
# Parent  6d5ed01491c2698991fedd77be6608dd09c04b2f
commit: escape summary text to avoid the error

diff --git a/hggtk/commit.py b/hggtk/commit.py
--- a/hggtk/commit.py
+++ b/hggtk/commit.py
@@ -418,7 +418,8 @@
         def setlabel(label, ctx, ishead):
             revision = str(ctx.rev())
             hash = str(ctx)
-            summary = hglib.toutf(ctx.description().split('\n')[0])
+            summary = gtklib.markup_escape_text(hglib.toutf(
+                                ctx.description().split('\n')[0]))
             face = 'monospace'
             size = '9000'
 
