topic: use `%d` for integers instead of `%s` on py3 stable
authorPulkit Goyal <7895pulkit@gmail.com>
Wed, 19 Feb 2020 13:13:09 +0530
branchstable
changeset 5132 fb5f49be3c90
parent 5120 4da89a328119
child 5133 f93bf36d0c19
topic: use `%d` for integers instead of `%s` on py3 I have system mercurial using py3 which lead me to the traceback pointing to this.
hgext3rd/topic/__init__.py
--- a/hgext3rd/topic/__init__.py	Sun Feb 02 13:40:13 2020 +0100
+++ b/hgext3rd/topic/__init__.py	Wed Feb 19 13:13:09 2020 +0530
@@ -559,7 +559,7 @@
                         msg = _(b"active topic '%s' grew its first changeset\n%s")
                         ui.status(msg % (ct, hint))
                     else:
-                        msg = _(b"active topic '%s' grew its %s first changesets\n%s")
+                        msg = _(b"active topic '%s' grew its %d first changesets\n%s")
                         ui.status(msg % (ct, csetcount, hint))
 
             tr.addpostclose(b'signalcurrenttopicempty', currenttopicempty)