##// 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 2774 ('+'.join([hexfunc(p.node()) for p in parents]), changed)]
2775 2775 if num:
2776 2776 output.append("%s%s" %
2777 ('+'.join([pycompat.bytestr(p.rev()) for p in parents]),
2778 changed))
2777 ('+'.join(["%d" % p.rev() for p in parents]), changed))
2779 2778 else:
2780 2779 if default or id:
2781 2780 output = [hexfunc(ctx.node())]
@@ -623,7 +623,7 b' def showparents(**args):'
623 623 ctx = args['ctx']
624 624 pctxs = scmutil.meaningfulparents(repo, ctx)
625 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 627 parents = [[('rev', p.rev()),
628 628 ('node', p.hex()),
629 629 ('phase', p.phasestr())]
@@ -653,7 +653,7 b' def showrevslist(name, revs, **args):'
653 653 args = pycompat.byteskwargs(args)
654 654 repo = args['ctx'].repo()
655 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 657 f = _showlist(name, revs, args)
658 658 return _hybrid(f, revs,
659 659 lambda x: {name: x, 'ctx': repo[int(x)], 'revcache': {}},
General Comments 0
You need to be logged in to leave comments. Login now