##// END OF EJS Templates
hgk: display committer name when set by hg-git
Andrew Shadura -
r24604:ce8dd4fd default
parent child Browse files
Show More
@@ -2516,6 +2516,9 b' proc selectline {l isnew} {'
2516 }
2516 }
2517 $ctext insert end "User: [lindex $info 1]\n"
2517 $ctext insert end "User: [lindex $info 1]\n"
2518 $ctext insert end "Date: [lindex $info 2]\n"
2518 $ctext insert end "Date: [lindex $info 2]\n"
2519 if {[lindex $info 3] ne ""} {
2520 $ctext insert end "Committer: [lindex $info 3]\n"
2521 }
2519 if {[info exists idbookmarks($id)]} {
2522 if {[info exists idbookmarks($id)]} {
2520 $ctext insert end "Bookmarks:"
2523 $ctext insert end "Bookmarks:"
2521 foreach bookmark $idbookmarks($id) {
2524 foreach bookmark $idbookmarks($id) {
@@ -117,15 +117,11 b' def catcommit(ui, repo, n, prefix, ctx=N'
117
117
118 date = ctx.date()
118 date = ctx.date()
119 description = ctx.description().replace("\0", "")
119 description = ctx.description().replace("\0", "")
120 lines = description.splitlines()
120 ui.write(("author %s %s %s\n" % (ctx.user(), int(date[0]), date[1])))
121 if lines and lines[-1].startswith('committer:'):
122 committer = lines[-1].split(': ')[1].rstrip()
123 else:
124 committer = ""
125
121
126 ui.write(("author %s %s %s\n" % (ctx.user(), int(date[0]), date[1])))
122 if 'committer' in ctx.extra():
127 if committer != '':
123 ui.write(("committer %s\n" % ctx.extra()['committer']))
128 ui.write(("committer %s %s %s\n" % (committer, int(date[0]), date[1])))
124
129 ui.write(("revision %d\n" % ctx.rev()))
125 ui.write(("revision %d\n" % ctx.rev()))
130 ui.write(("branch %s\n" % ctx.branch()))
126 ui.write(("branch %s\n" % ctx.branch()))
131 if obsolete.isenabled(repo, obsolete.createmarkersopt):
127 if obsolete.isenabled(repo, obsolete.createmarkersopt):
General Comments 0
You need to be logged in to leave comments. Login now