changeset 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 73ca1c5e65f8
files hgext/convert/cvsps.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/convert/cvsps.py	Fri Apr 27 01:24:04 2018 -0400
+++ b/hgext/convert/cvsps.py	Fri Apr 27 01:26:23 2018 -0400
@@ -941,7 +941,8 @@
                 if fn.startswith(opts["prefix"]):
                     fn = fn[len(opts["prefix"]):]
                 ui.write('\t%s:%s->%s%s \n' % (
-                        fn, '.'.join([str(x) for x in f.parent]) or 'INITIAL',
+                        fn,
+                        '.'.join([b"%d" % x for x in f.parent]) or 'INITIAL',
                         '.'.join([(b"%d" % x) for x in f.revision]),
                         ['', '(DEAD)'][f.dead]))
             ui.write('\n')