changeset 31349:719e64bf9ec2

scmutil: fix key generation to portably bytestringify integer
author Augie Fackler <augie@google.com>
date Sun, 12 Mar 2017 00:47:39 -0500
parents fc06c5260639
children 2eee8ad77726
files mercurial/scmutil.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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