Patchwork D2429: commands: use ctx.rev() instead of %d % ctx

login
register
mail settings
Submitter phabricator
Date Feb. 25, 2018, 1:54 a.m.
Message ID <04e63edced2df7d3c2a234e1e4aa8f20@localhost.localdomain>
Download mbox | patch
Permalink /patch/28352/
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 rHGa75cab94e936: commands: use ctx.rev() instead of %d % ctx (authored by indygreg, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D2429?vs=6061&id=6074

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

AFFECTED FILES
  mercurial/commands.py

CHANGE DETAILS




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

Patch

diff --git a/mercurial/commands.py b/mercurial/commands.py
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -860,7 +860,8 @@ 
                     transition = "bad"
                 state[transition].append(node)
                 ctx = repo[node]
-                ui.status(_('changeset %d:%s: %s\n') % (ctx, ctx, transition))
+                ui.status(_('changeset %d:%s: %s\n') % (ctx.rev(), ctx,
+                                                        transition))
                 hbisect.checkstate(state)
                 # bisect
                 nodes, changesets, bgood = hbisect.bisect(repo, state)