diff mercurial/cmdutil.py @ 24585:e191d5d8d515

changeset_printer: hide manifest node for workingctx Because workingctx has no manifest, it makes sense to hide "manifest:" row completely.
author Yuya Nishihara <yuya@tcha.org>
date Sat, 14 Mar 2015 17:33:22 +0900
parents 5a40b5d45396
children 201caa10536b
line wrap: on
line diff
--- a/mercurial/cmdutil.py	Sat Mar 14 20:01:30 2015 +0900
+++ b/mercurial/cmdutil.py	Sat Mar 14 17:33:22 2015 +0900
@@ -1151,7 +1151,7 @@
                           % (pctx.rev(), hexfunc(pctx.node())),
                           label=label)
 
-        if self.ui.debugflag:
+        if self.ui.debugflag and rev is not None:
             mnode = ctx.manifestnode()
             # i18n: column positioning for "hg log"
             self.ui.write(_("manifest:    %d:%s\n") %