Patchwork D2428: cmdutil: use ctx.rev() instead of %d % ctx

login
register
mail settings
Submitter phabricator
Date Feb. 25, 2018, 1:54 a.m.
Message ID <76055b14c6e2058d0e2de801ceda55f5@localhost.localdomain>
Download mbox | patch
Permalink /patch/28349/
State Not Applicable
Headers show

Comments

phabricator - Feb. 25, 2018, 1:54 a.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGfd2191d870ff: cmdutil: use ctx.rev() instead of %d % ctx (authored by indygreg, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D2428?vs=6060&id=6073

REVISION DETAIL
  https://phab.mercurial-scm.org/D2428

AFFECTED FILES
  mercurial/cmdutil.py

CHANGE DETAILS




To: indygreg, #hg-reviewers, yuja
Cc: mercurial-devel

Patch

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()))