view tests/failfilemerge.py @ 51642:69c5f8d6c710

branching: merge stable into default
author Raphaël Gomès <rgomes@octobus.net>
date Wed, 12 Jun 2024 11:29:11 +0200
parents 6000f5b25c9b
children
line wrap: on
line source

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