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

indygreg (Gregory Szorc) phabricator at mercurial-scm.org
Sat Feb 24 20:54:29 EST 2018


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

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)



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


More information about the Mercurial-devel mailing list