view mercurial/cext/bdiff.pyi @ 50230:99faa396e186

narrow: write the narrow spec in a transaction during share It will be simpler if all write happens within transaction.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Thu, 23 Feb 2023 04:42:17 +0100
parents b8389533ba3a
children
line wrap: on
line source

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]]: ...