Show More
@@ -652,9 +652,8 class changeset_printer(object): | |||
|
652 | 652 | return |
|
653 | 653 | |
|
654 | 654 | log = self.repo.changelog |
|
655 | changes = log.read(changenode) | |
|
656 | date = util.datestr(changes[2]) | |
|
657 | extra = changes[5] | |
|
655 | date = util.datestr(ctx.date()) | |
|
656 | extra = ctx.extra() | |
|
658 | 657 | branch = extra.get("branch") |
|
659 | 658 | |
|
660 | 659 | hexfunc = self.ui.debugflag and hex or short |
@@ -674,9 +673,10 class changeset_printer(object): | |||
|
674 | 673 | self.ui.write(_("parent: %d:%s\n") % parent) |
|
675 | 674 | |
|
676 | 675 | if self.ui.debugflag: |
|
676 | mnode = ctx.manifestnode() | |
|
677 | 677 | self.ui.write(_("manifest: %d:%s\n") % |
|
678 |
(self.repo.manifest.rev( |
|
|
679 |
self.ui.write(_("user: %s\n") % c |
|
|
678 | (self.repo.manifest.rev(mnode), hex(mnode))) | |
|
679 | self.ui.write(_("user: %s\n") % ctx.user()) | |
|
680 | 680 | self.ui.write(_("date: %s\n") % date) |
|
681 | 681 | |
|
682 | 682 | if self.ui.debugflag: |
@@ -685,8 +685,8 class changeset_printer(object): | |||
|
685 | 685 | files): |
|
686 | 686 | if value: |
|
687 | 687 | self.ui.write("%-12s %s\n" % (key, " ".join(value))) |
|
688 |
elif c |
|
|
689 |
self.ui.write(_("files: %s\n") % " ".join(c |
|
|
688 | elif ctx.files() and self.ui.verbose: | |
|
689 | self.ui.write(_("files: %s\n") % " ".join(ctx.files())) | |
|
690 | 690 | if copies and self.ui.verbose: |
|
691 | 691 | copies = ['%s (%s)' % c for c in copies] |
|
692 | 692 | self.ui.write(_("copies: %s\n") % ' '.join(copies)) |
@@ -696,7 +696,7 class changeset_printer(object): | |||
|
696 | 696 | self.ui.write(_("extra: %s=%s\n") |
|
697 | 697 | % (key, value.encode('string_escape'))) |
|
698 | 698 | |
|
699 |
description = c |
|
|
699 | description = ctx.description().strip() | |
|
700 | 700 | if description: |
|
701 | 701 | if self.ui.verbose: |
|
702 | 702 | self.ui.write(_("description:\n")) |
@@ -299,6 +299,7 class filectx(object): | |||
|
299 | 299 | def files(self): return self._changectx.files() |
|
300 | 300 | def description(self): return self._changectx.description() |
|
301 | 301 | def branch(self): return self._changectx.branch() |
|
302 | def extra(self): return self._changectx.extra() | |
|
302 | 303 | def manifest(self): return self._changectx.manifest() |
|
303 | 304 | def changectx(self): return self._changectx |
|
304 | 305 |
General Comments 0
You need to be logged in to leave comments.
Login now