D2346: debugbuilddag: use '%d' instead of str() to get numbered lines
durin42 (Augie Fackler)
phabricator at mercurial-scm.org
Sun Feb 18 21:07:10 EST 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG7c5be6de4cb0: debugbuilddag: use '%d' instead of str() to get numbered lines (authored by durin42, committed by ).
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D2346?vs=5903&id=5914
REVISION DETAIL
https://phab.mercurial-scm.org/D2346
AFFECTED FILES
mercurial/debugcommands.py
CHANGE DETAILS
diff --git a/mercurial/debugcommands.py b/mercurial/debugcommands.py
--- a/mercurial/debugcommands.py
+++ b/mercurial/debugcommands.py
@@ -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 = []
To: durin42, #hg-reviewers, indygreg
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list