D2428: cmdutil: use ctx.rev() instead of %d % ctx
indygreg (Gregory Szorc)
phabricator at mercurial-scm.org
Sat Feb 24 19:31:20 UTC 2018
indygreg created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REVISION SUMMARY
Weaning off basectx.__int__.
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D2428
AFFECTED FILES
mercurial/cmdutil.py
CHANGE DETAILS
diff --git a/mercurial/cmdutil.py b/mercurial/cmdutil.py
--- a/mercurial/cmdutil.py
+++ b/mercurial/cmdutil.py
@@ -2575,7 +2575,7 @@
if not opts.get('close_branch'):
for r in parents:
if r.closesbranch() and r.branch() == branch:
- repo.ui.status(_('reopening closed branch head %d\n') % r)
+ repo.ui.status(_('reopening closed branch head %d\n') % r.rev())
if repo.ui.debugflag:
repo.ui.write(_('committed changeset %d:%s\n') % (ctx.rev(), ctx.hex()))
To: indygreg, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list