D2845: hghave: fix xdiff check on Python 3

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

D2845: hghave: fix xdiff check on Python 3

indygreg (Gregory Szorc)
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
_______________________________________________
Mercurial-devel mailing list
[hidden email]
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel
Reply | Threaded
Open this post in threaded view
|

D2845: hghave: fix xdiff check on Python 3

indygreg (Gregory Szorc)
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

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, yuja
Cc: mercurial-devel
_______________________________________________
Mercurial-devel mailing list
[hidden email]
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel