# HG changeset patch # User Augie Fackler # Date 2018-01-18 01:41:51 # Node ID aad39713ef352529681bbf3a5d85ac8251c50f2c # Parent a011e4140435c9cd976130747d602d97daf20d2b transaction: fix hg version check when loading journal Differential Revision: https://phab.mercurial-scm.org/D1891 diff --git a/mercurial/transaction.py b/mercurial/transaction.py --- a/mercurial/transaction.py +++ b/mercurial/transaction.py @@ -612,7 +612,7 @@ def rollback(opener, vfsmap, file, repor 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