Mercurial > public > mercurial-scm > hg-stable
comparison 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 |
comparison
equal
deleted
inserted
replaced
24584:5a40b5d45396 | 24585:e191d5d8d515 |
---|---|
1149 # i18n: column positioning for "hg log" | 1149 # i18n: column positioning for "hg log" |
1150 self.ui.write(_("parent: %d:%s\n") | 1150 self.ui.write(_("parent: %d:%s\n") |
1151 % (pctx.rev(), hexfunc(pctx.node())), | 1151 % (pctx.rev(), hexfunc(pctx.node())), |
1152 label=label) | 1152 label=label) |
1153 | 1153 |
1154 if self.ui.debugflag: | 1154 if self.ui.debugflag and rev is not None: |
1155 mnode = ctx.manifestnode() | 1155 mnode = ctx.manifestnode() |
1156 # i18n: column positioning for "hg log" | 1156 # i18n: column positioning for "hg log" |
1157 self.ui.write(_("manifest: %d:%s\n") % | 1157 self.ui.write(_("manifest: %d:%s\n") % |
1158 (self.repo.manifest.rev(mnode), hex(mnode)), | 1158 (self.repo.manifest.rev(mnode), hex(mnode)), |
1159 label='ui.debug log.manifest') | 1159 label='ui.debug log.manifest') |