comparison contrib/hgk.py @ 1950:5f581f337b05

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.
author Hollis Blanchard <hollisb@us.ibm.com>
date Wed, 15 Mar 2006 03:19:16 +0100
parents f2b1df3dbcbb
children
comparison
equal deleted inserted replaced
1949:d2c2e77826c0 1950:5f581f337b05
132 date = int(float(date_ar[0])) 132 date = int(float(date_ar[0]))
133 lines = changes[4].splitlines() 133 lines = changes[4].splitlines()
134 if lines[-1].startswith('committer:'): 134 if lines[-1].startswith('committer:'):
135 committer = lines[-1].split(': ')[1].rstrip() 135 committer = lines[-1].split(': ')[1].rstrip()
136 else: 136 else:
137 committer = "%s %s %s" % (changes[1], date, date_ar[1]) 137 committer = changes[1]
138 138
139 print "author %s %s %s" % (changes[1], date, date_ar[1]) 139 print "author %s %s %s" % (changes[1], date, date_ar[1])
140 print "committer %s" % (committer) 140 print "committer %s %s %s" % (committer, date, date_ar[1])
141 print "" 141 print ""
142 if prefix != "": 142 if prefix != "":
143 print "%s%s" % (prefix, changes[4].replace('\n', nlprefix).strip()) 143 print "%s%s" % (prefix, changes[4].replace('\n', nlprefix).strip())
144 else: 144 else:
145 print changes[4] 145 print changes[4]