mercurial/cext/mpatch.pyi
author Pierre-Yves David <pierre-yves.david@octobus.net>
Tue, 07 Mar 2023 03:42:40 +0100
branchstable
changeset 50291 862969b6c359
parent 46042 8dca9051a859
permissions -rw-r--r--
undo-files: cleanup legacy files when applicable The "journal" code is much more compact in 6.4, and so is the "undo" files as a result. However the previous version were much noisier, so let us cleanup undo files from older version too.

from typing import (
    List,
)

version: int

class mpatchError(Exception): ...

def patches(text: bytes, bins: List[bytes]) -> bytes: ...
def patchedsize(orig: int, data: bytes) -> int: ...