D1891: transaction: fix hg version check when loading journal

durin42 (Augie Fackler) phabricator at mercurial-scm.org
Thu Feb 1 20:39:17 UTC 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rHGa07f727a7eb1: transaction: fix hg version check when loading journal (authored by durin42, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D1891?vs=4907&id=5061

REVISION DETAIL
  https://phab.mercurial-scm.org/D1891

AFFECTED FILES
  mercurial/transaction.py

CHANGE DETAILS

diff --git a/mercurial/transaction.py b/mercurial/transaction.py
--- a/mercurial/transaction.py
+++ b/mercurial/transaction.py
@@ -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



To: durin42, #hg-reviewers, pulkit, indygreg
Cc: pulkit, mercurial-devel


More information about the Mercurial-devel mailing list