debugbuilddag: use '%d' instead of str() to get numbered lines
authorAugie Fackler <augie@google.com>
Sun, 18 Feb 2018 15:23:26 -0500
changeset 36318 3f67c56a5fd7
parent 36317 f14879f61cd8
child 36319 c303eda316be
debugbuilddag: use '%d' instead of str() to get numbered lines Differential Revision: https://phab.mercurial-scm.org/D2346
mercurial/debugcommands.py
--- a/mercurial/debugcommands.py	Sun Feb 18 15:18:07 2018 -0500
+++ b/mercurial/debugcommands.py	Sun Feb 18 15:23:26 2018 -0500
@@ -163,7 +163,7 @@
     if mergeable_file:
         linesperrev = 2
         # make a file with k lines per rev
-        initialmergedlines = [str(i) for i in xrange(0, total * linesperrev)]
+        initialmergedlines = ['%d' % i for i in xrange(0, total * linesperrev)]
         initialmergedlines.append("")
 
     tags = []