changeset 4039:cc08d2543593

hgk: remove embedded nulls in descriptions
author Matt Mackall <mpm@selenic.com>
date Tue, 23 Jan 2007 17:41:53 -0600
parents 5ae460b1f6f0
children add43809810d
files hgext/hgk.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/hgk.py	Thu Jan 18 22:16:26 2007 -0200
+++ b/hgext/hgk.py	Tue Jan 23 17:41:53 2007 -0600
@@ -71,7 +71,7 @@
     if p1: print "parent %s" % (hg.short(p1.node()))
     if p2: print "parent %s" % (hg.short(p2.node()))
     date = ctx.date()
-    description = ctx.description()
+    description = ctx.description().replace("\0", "")
     lines = description.splitlines()
     if lines and lines[-1].startswith('committer:'):
         committer = lines[-1].split(': ')[1].rstrip()