# HG changeset patch # User Matt Mackall # Date 1169595713 21600 # Node ID cc08d2543593a0d17e5bddd7c40b1544acbabe55 # Parent 5ae460b1f6f0b996863889158ee4f67f3e4514a3 hgk: remove embedded nulls in descriptions diff --git a/hgext/hgk.py b/hgext/hgk.py --- a/hgext/hgk.py +++ b/hgext/hgk.py @@ -71,7 +71,7 @@ def catcommit(repo, n, prefix, ctx=None) 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()