D2845: hghave: fix xdiff check on Python 3
durin42 (Augie Fackler)
phabricator at mercurial-scm.org
Tue Mar 13 22:14:35 UTC 2018
durin42 created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D2845
AFFECTED FILES
tests/hghave.py
CHANGE DETAILS
diff --git a/tests/hghave.py b/tests/hghave.py
--- a/tests/hghave.py
+++ b/tests/hghave.py
@@ -714,6 +714,6 @@
try:
from mercurial import policy
bdiff = policy.importmod('bdiff')
- return bdiff.xdiffblocks('', '') == [(0, 0, 0, 0)]
+ return bdiff.xdiffblocks(b'', b'') == [(0, 0, 0, 0)]
except (ImportError, AttributeError):
return False
To: durin42, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list