mercurial/cext/bdiff.pyi
author Pierre-Yves David <pierre-yves.david@octobus.net>
Fri, 21 Jan 2022 19:57:47 +0100
changeset 48664 009e86022a9d
parent 46042 8dca9051a859
child 49731 b8389533ba3a
permissions -rw-r--r--
test-http-bad-server: use the new pattern-reading for a test-case This test case is now less sensitive to change of unrelated bits of the client/server exchange. Since this introduce some churn in the output, we do it independently for each test cases. This patch is the last of such changes, for both sent and recv cases. Differential Revision: https://phab.mercurial-scm.org/D12073

from typing import (
    List,
    Tuple,
)

version: int

def bdiff(a: bytes, b: bytes): bytes
def blocks(a: bytes, b: bytes) -> List[Tuple[int, int, int, int]]: ...
def fixws(s: bytes, allws: bool) -> bytes: ...
def splitnewlines(text: bytes) -> List[bytes]: ...
def xdiffblocks(a: bytes, b: bytes) -> List[Tuple[int, int, int, int]]: ...