# HG changeset patch
# User Augie Fackler <augie@google.com>
# Date 2018-04-27 05:26:23
# Node ID dd071b34e60b4e560821109e36253be23e65b2ee
# Parent  fe148d7544a41b2fda2517a531372b6e194da67d

cvsps: portably convert int to bytes

Differential Revision: https://phab.mercurial-scm.org/D3485

diff --git a/hgext/convert/cvsps.py b/hgext/convert/cvsps.py
--- a/hgext/convert/cvsps.py
+++ b/hgext/convert/cvsps.py
@@ -941,7 +941,8 @@ def debugcvsps(ui, *args, **opts):
                 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')