tests/failfilemerge.py
author Raphaël Gomès <rgomes@octobus.net>
Wed, 19 Oct 2022 14:46:19 +0200
changeset 49567 6b32d39e9a67
parent 48875 6000f5b25c9b
permissions -rw-r--r--
rust-status: make `DirEntry` attributes clearer

# 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)