hgk "committer:" bug
authorHollis Blanchard <hollisb@us.ibm.com>
Wed, 15 Mar 2006 03:19:16 +0100
changeset 1950 5f581f337b05
parent 1949 d2c2e77826c0
child 1951 696230e52e4d
hgk "committer:" bug I've been having an hgk problem with this tree: http://xenbits.xensource.com/ext/linux-ppc-2.6.hg, specifically changeset 93c590d23a53. The problem seems to be that the commit message contains a "committer:" line, which triggers a (relatively unused?) case in hgk.py... Both cases need the dates at the end of the line.
contrib/hgk.py
--- a/contrib/hgk.py	Wed Mar 15 02:49:45 2006 +0100
+++ b/contrib/hgk.py	Wed Mar 15 03:19:16 2006 +0100
@@ -134,10 +134,10 @@
     if lines[-1].startswith('committer:'):
         committer = lines[-1].split(': ')[1].rstrip()
     else:
-        committer = "%s %s %s" % (changes[1], date, date_ar[1])
+        committer = changes[1]
 
     print "author %s %s %s" % (changes[1], date, date_ar[1])
-    print "committer %s" % (committer)
+    print "committer %s %s %s" % (committer, date, date_ar[1])
     print ""
     if prefix != "":
         print "%s%s" % (prefix, changes[4].replace('\n', nlprefix).strip())