equal
deleted
inserted
replaced
115 for p in ctx.parents(): |
115 for p in ctx.parents(): |
116 ui.write(("parent %s\n" % p)) |
116 ui.write(("parent %s\n" % p)) |
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() |
|
121 if lines and lines[-1].startswith('committer:'): |
|
122 committer = lines[-1].split(': ')[1].rstrip() |
|
123 else: |
|
124 committer = "" |
|
125 |
|
126 ui.write(("author %s %s %s\n" % (ctx.user(), int(date[0]), date[1]))) |
120 ui.write(("author %s %s %s\n" % (ctx.user(), int(date[0]), date[1]))) |
127 if committer != '': |
121 |
128 ui.write(("committer %s %s %s\n" % (committer, int(date[0]), date[1]))) |
122 if 'committer' in ctx.extra(): |
|
123 ui.write(("committer %s\n" % ctx.extra()['committer'])) |
|
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): |
132 if ctx.obsolete(): |
128 if ctx.obsolete(): |
133 ui.write(("obsolete\n")) |
129 ui.write(("obsolete\n")) |