Mercurial > hg-stable
changeset 36351:3f67c56a5fd7
debugbuilddag: use '%d' instead of str() to get numbered lines
Differential Revision: https://phab.mercurial-scm.org/D2346
author | Augie Fackler <augie@google.com> |
---|---|
date | Sun, 18 Feb 2018 15:23:26 -0500 |
parents | f14879f61cd8 |
children | c303eda316be |
files | mercurial/debugcommands.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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 = []