##// END OF EJS Templates
py3: use "%d" % val for int rather than pycompat.bytestr...
Pulkit Goyal -
r33015:f66be4ca default
parent child Browse files
Show More
@@ -2774,8 +2774,7 b' def identify(ui, repo, source=None, rev='
2774 ('+'.join([hexfunc(p.node()) for p in parents]), changed)]
2774 ('+'.join([hexfunc(p.node()) for p in parents]), changed)]
2775 if num:
2775 if num:
2776 output.append("%s%s" %
2776 output.append("%s%s" %
2777 ('+'.join([pycompat.bytestr(p.rev()) for p in parents]),
2777 ('+'.join(["%d" % p.rev() for p in parents]), changed))
2778 changed))
2779 else:
2778 else:
2780 if default or id:
2779 if default or id:
2781 output = [hexfunc(ctx.node())]
2780 output = [hexfunc(ctx.node())]
@@ -623,7 +623,7 b' def showparents(**args):'
623 ctx = args['ctx']
623 ctx = args['ctx']
624 pctxs = scmutil.meaningfulparents(repo, ctx)
624 pctxs = scmutil.meaningfulparents(repo, ctx)
625 # ifcontains() needs a list of str
625 # ifcontains() needs a list of str
626 prevs = [pycompat.bytestr(p.rev()) for p in pctxs]
626 prevs = ["%d" % p.rev() for p in pctxs]
627 parents = [[('rev', p.rev()),
627 parents = [[('rev', p.rev()),
628 ('node', p.hex()),
628 ('node', p.hex()),
629 ('phase', p.phasestr())]
629 ('phase', p.phasestr())]
@@ -653,7 +653,7 b' def showrevslist(name, revs, **args):'
653 args = pycompat.byteskwargs(args)
653 args = pycompat.byteskwargs(args)
654 repo = args['ctx'].repo()
654 repo = args['ctx'].repo()
655 # ifcontains() needs a list of str
655 # ifcontains() needs a list of str
656 revs = [pycompat.bytestr(r) for r in revs]
656 revs = ["%d" % r for r in revs]
657 f = _showlist(name, revs, args)
657 f = _showlist(name, revs, args)
658 return _hybrid(f, revs,
658 return _hybrid(f, revs,
659 lambda x: {name: x, 'ctx': repo[int(x)], 'revcache': {}},
659 lambda x: {name: x, 'ctx': repo[int(x)], 'revcache': {}},
General Comments 0
You need to be logged in to leave comments. Login now