Mercurial > public > mercurial-scm > hg-stable
diff hgext/convert/git.py @ 37579:ce566e0f73d0
py3: use '%d' for integers instead of '%s'
Differential Revision: https://phab.mercurial-scm.org/D3277
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Thu, 12 Apr 2018 14:30:37 +0530 |
parents | aefb75730ea3 |
children | 5b836a4c9a1f |
line wrap: on
line diff
--- a/hgext/convert/git.py Thu Apr 12 14:28:08 2018 +0530 +++ b/hgext/convert/git.py Thu Apr 12 14:30:37 2018 +0530 @@ -435,7 +435,7 @@ else: output, status = self.gitrunlines('diff-tree', '--name-only', '--root', '-r', version, - '%s^%s' % (version, i + 1), '--') + '%s^%d' % (version, i + 1), '--') if status: raise error.Abort(_('cannot read changes in %s') % version) changes = [f.rstrip('\n') for f in output]