view tests/failfilemerge.py @ 51640:4281f225c980 stable

Added tag 6.7.4 for changeset a1a011d4b148
author Raphaël Gomès <rgomes@octobus.net>
date Wed, 12 Jun 2024 11:26:57 +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)