comparison hgext/convert/cvsps.py @ 37887:dd071b34e60b

cvsps: portably convert int to bytes Differential Revision: https://phab.mercurial-scm.org/D3485
author Augie Fackler <augie@google.com>
date Fri, 27 Apr 2018 01:26:23 -0400
parents fe148d7544a4
children d4aad0dd69ed
comparison
equal deleted inserted replaced
37886:fe148d7544a4 37887:dd071b34e60b
939 for f in cs.entries: 939 for f in cs.entries:
940 fn = f.file 940 fn = f.file
941 if fn.startswith(opts["prefix"]): 941 if fn.startswith(opts["prefix"]):
942 fn = fn[len(opts["prefix"]):] 942 fn = fn[len(opts["prefix"]):]
943 ui.write('\t%s:%s->%s%s \n' % ( 943 ui.write('\t%s:%s->%s%s \n' % (
944 fn, '.'.join([str(x) for x in f.parent]) or 'INITIAL', 944 fn,
945 '.'.join([b"%d" % x for x in f.parent]) or 'INITIAL',
945 '.'.join([(b"%d" % x) for x in f.revision]), 946 '.'.join([(b"%d" % x) for x in f.revision]),
946 ['', '(DEAD)'][f.dead])) 947 ['', '(DEAD)'][f.dead]))
947 ui.write('\n') 948 ui.write('\n')
948 949
949 # have we seen the start tag? 950 # have we seen the start tag?