--- a/hgext/patchbomb.py Fri Mar 02 07:16:33 2018 +0530
+++ b/hgext/patchbomb.py Fri Mar 02 07:17:06 2018 +0530
@@ -212,7 +212,7 @@
if not numbered:
return '[PATCH%s]' % flag
else:
- tlen = len(str(total))
+ tlen = len("%d" % total)
return '[PATCH %0*d of %d%s]' % (tlen, idx, total, flag)
def makepatch(ui, repo, rev, patchlines, opts, _charsets, idx, total, numbered,
@@ -630,7 +630,7 @@
if outgoing:
revs = _getoutgoing(repo, dest, revs)
if bundle:
- opts['revs'] = [str(r) for r in revs]
+ opts['revs'] = ["%d" % r for r in revs]
# check if revision exist on the public destination
publicurl = repo.ui.config('patchbomb', 'publicurl')