D5056: closehead: use correct format string for rev numbers

mbthomas (Mark Thomas) phabricator at mercurial-scm.org
Sat Oct 13 08:38:31 UTC 2018


mbthomas created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  Python 3 requires %d for numbers.

REPOSITORY
  rHG Mercurial

BRANCH
  default

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

AFFECTED FILES
  hgext/closehead.py

CHANGE DETAILS

diff --git a/hgext/closehead.py b/hgext/closehead.py
--- a/hgext/closehead.py
+++ b/hgext/closehead.py
@@ -66,7 +66,7 @@
     heads = set(repo[h].rev() for h in heads)
     for rev in revs:
         if rev not in heads:
-            raise error.Abort(_('revision is not an open head: %s') % rev)
+            raise error.Abort(_('revision is not an open head: %d') % rev)
 
     message = cmdutil.logmessage(ui, opts)
     if not message:



To: mbthomas, #hg-reviewers
Cc: mercurial-devel


More information about the Mercurial-devel mailing list