# HG changeset patch # User Augie Fackler # Date 1489297659 18000 # Node ID 719e64bf9ec2d7b8e86b6550a5d193b3c67944d1 # Parent fc06c5260639d91b30b43763534bc4e12d5e2e47 scmutil: fix key generation to portably bytestringify integer diff -r fc06c5260639 -r 719e64bf9ec2 mercurial/scmutil.py --- a/mercurial/scmutil.py Sun Mar 12 00:42:46 2017 -0500 +++ b/mercurial/scmutil.py Sun Mar 12 00:47:39 2017 -0500 @@ -328,7 +328,7 @@ if revs: s = hashlib.sha1() for rev in revs: - s.update('%s;' % rev) + s.update('%d;' % rev) key = s.digest() return key