mercurial/transaction.py
changeset 35832 aad39713ef35
parent 33793 bbbbd3c30bfc
child 36735 ef345f9e4295
--- a/mercurial/transaction.py	Wed Jan 17 20:38:10 2018 -0500
+++ b/mercurial/transaction.py	Wed Jan 17 20:41:51 2018 -0500
@@ -612,7 +612,7 @@
         lines = fp.readlines()
         if lines:
             ver = lines[0][:-1]
-            if ver == str(version):
+            if ver == (b'%d' % version):
                 for line in lines[1:]:
                     if line:
                         # Shave off the trailing newline