py3: use `%d` for int in % formatting stable
authorManuel Jacob <me@manueljacob.de>
Mon, 15 Jun 2020 03:34:23 +0200
branchstable
changeset 44965 8439351d3208
parent 44964 d96d8bbbedb1
child 44966 0c27d981131a
py3: use `%d` for int in % formatting On Python 3, `%s` is an alias to `%b`, which requires that the object implements `__bytes__()`, which is not the case for `int`.
hgext/convert/subversion.py
--- a/hgext/convert/subversion.py	Mon Jun 15 03:30:24 2020 +0200
+++ b/hgext/convert/subversion.py	Mon Jun 15 03:34:23 2020 +0200
@@ -773,7 +773,7 @@
         self.convertfp.flush()
 
     def revid(self, revnum, module=None):
-        return b'svn:%s%s@%s' % (self.uuid, module or self.module, revnum)
+        return b'svn:%s%s@%d' % (self.uuid, module or self.module, revnum)
 
     def revnum(self, rev):
         return int(rev.split(b'@')[-1])