view tests/failfilemerge.py @ 50497:66c556968222

store: introduce boolean property for revlog type This will avoid exposing implementation details to more generic code.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Mon, 15 May 2023 22:09:15 +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)