changeset 35832:aad39713ef35

transaction: fix hg version check when loading journal Differential Revision: https://phab.mercurial-scm.org/D1891
author Augie Fackler <augie@google.com>
date Wed, 17 Jan 2018 20:41:51 -0500
parents a011e4140435
children 87b085a4f9d1
files mercurial/transaction.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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