Patchwork D2346: debugbuilddag: use '%d' instead of str() to get numbered lines

login
register
mail settings
Submitter phabricator
Date Feb. 19, 2018, 2:07 a.m.
Message ID <596d5dded1c9532ac80d3ada97f5a435@localhost.localdomain>
Download mbox | patch
Permalink /patch/28146/
State Not Applicable
Headers show

Comments

phabricator - Feb. 19, 2018, 2:07 a.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG7c5be6de4cb0: debugbuilddag: use &#039;%d&#039; 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




To: durin42, #hg-reviewers, indygreg
Cc: mercurial-devel

Patch

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 = []