tests/failfilemerge.py
author pacien <pacien.trangirard@pacien.net>
Fri, 21 Apr 2023 14:33:33 +0200
changeset 50562 8fb3e942473a
parent 48966 6000f5b25c9b
permissions -rw-r--r--
stabletailgraph: naive version of leap computation This adds a naive reference implementation of the computation of leap and specific leap sets (described in the code documentation). The existing tests are enriched accordingly.

# extension to emulate interrupting filemerge._filemerge


from mercurial import (
    error,
    extensions,
    filemerge,
)


def failfilemerge(*args, **kwargs):
    raise error.Abort(b"^C")


def extsetup(ui):
    extensions.wrapfunction(filemerge, 'filemerge', failfilemerge)