py3: use %d to format an int stable
authorIan Moody <moz-ian@perix.co.uk>
Sat, 02 Nov 2019 22:21:25 +0000
branchstable
changeset 43399 742065def6ca
parent 43398 9a8f8c6ed965
child 43400 0d2393fc1cf8
py3: use %d to format an int Avoids a TypeError under py3. Fortunately this is very much an edge case since it requires the user to have deliberately created a local tag of the form 'D\d+' that isn't truthful. Differential Revision: https://phab.mercurial-scm.org/D7215
hgext/phabricator.py
--- a/hgext/phabricator.py	Sat Nov 02 15:02:35 2019 -0700
+++ b/hgext/phabricator.py	Sat Nov 02 22:21:25 2019 +0000
@@ -441,7 +441,7 @@
                 )
                 unfi.ui.warn(
                     _(
-                        b'D%s: local tag removed - does not match '
+                        b'D%d: local tag removed - does not match '
                         b'Differential history\n'
                     )
                     % drev