changeset 40228:a17c07793dcd

py3: use '%d' for rev nums instead of '%s' This makes test-close-head.t pass on Python 3. Differential Revision: https://phab.mercurial-scm.org/D5040
author Pulkit Goyal <pulkit@yandex-team.ru>
date Sat, 13 Oct 2018 05:12:20 +0300
parents f4893b59230f
children fed5e57c8dc7
files contrib/python3-whitelist hgext/closehead.py
diffstat 2 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/contrib/python3-whitelist	Sat Oct 13 05:03:24 2018 +0300
+++ b/contrib/python3-whitelist	Sat Oct 13 05:12:20 2018 +0300
@@ -71,6 +71,7 @@
 test-clone-update-order.t
 test-clone.t
 test-clonebundles.t
+test-close-head.t
 test-commit-amend.t
 test-commit-interactive.t
 test-commit-multiple.t
--- a/hgext/closehead.py	Sat Oct 13 05:03:24 2018 +0300
+++ b/hgext/closehead.py	Sat Oct 13 05:12:20 2018 +0300
@@ -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: