scmutil: fix key generation to portably bytestringify integer
authorAugie Fackler <augie@google.com>
Sun, 12 Mar 2017 00:47:39 -0500
changeset 31349 719e64bf9ec2
parent 31348 fc06c5260639
child 31350 2eee8ad77726
scmutil: fix key generation to portably bytestringify integer
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