D5056: closehead: use correct format string for rev numbers

mbthomas (Mark Thomas) phabricator at mercurial-scm.org
Sat Oct 13 04:41:43 EDT 2018


mbthomas updated this revision to Diff 12013.
mbthomas added a comment.
Herald added a reviewer: pulkit.


  Add whitelist for test this fixes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D5056?vs=12012&id=12013

BRANCH
  default

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

AFFECTED FILES
  contrib/python3-whitelist
  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:
diff --git a/contrib/python3-whitelist b/contrib/python3-whitelist
--- a/contrib/python3-whitelist
+++ b/contrib/python3-whitelist
@@ -70,6 +70,7 @@
 test-clone-uncompressed.t
 test-clone-update-order.t
 test-clonebundles.t
+test-close-head.t
 test-commit-amend.t
 test-commit-interactive.t
 test-commit-multiple.t



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


More information about the Mercurial-devel mailing list