Patchwork D2845: hghave: fix xdiff check on Python 3

login
register
mail settings
Submitter phabricator
Date March 14, 2018, 1:51 p.m.
Message ID <8f1177b2a8564d87c22dd79c32f09dfb@localhost.localdomain>
Download mbox | patch
Permalink /patch/29488/
State Not Applicable
Headers show

Comments

phabricator - March 14, 2018, 1:51 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG273f89e8e76a: hghave: fix xdiff check on Python 3 (authored by durin42, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D2845?vs=7002&id=7026

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

AFFECTED FILES
  tests/hghave.py

CHANGE DETAILS




To: durin42, #hg-reviewers, yuja
Cc: mercurial-devel

Patch

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