equal
deleted
inserted
replaced
712 @check("xdiff", "xdiff algorithm") |
712 @check("xdiff", "xdiff algorithm") |
713 def has_xdiff(): |
713 def has_xdiff(): |
714 try: |
714 try: |
715 from mercurial import policy |
715 from mercurial import policy |
716 bdiff = policy.importmod('bdiff') |
716 bdiff = policy.importmod('bdiff') |
717 return bdiff.xdiffblocks('', '') == [(0, 0, 0, 0)] |
717 return bdiff.xdiffblocks(b'', b'') == [(0, 0, 0, 0)] |
718 except (ImportError, AttributeError): |
718 except (ImportError, AttributeError): |
719 return False |
719 return False |