failfilemerge.py
17 lines
| 320 B
| text/x-python
|
PythonLexer
/ tests / failfilemerge.py
|
r30332 | # extension to emulate interrupting filemerge._filemerge | ||
|
r27988 | |||
from __future__ import absolute_import | ||||
from mercurial import ( | ||||
|
r28772 | error, | ||
|
r27988 | extensions, | ||
|
r28772 | filemerge, | ||
|
r27988 | ) | ||
|
r43346 | |||
|
r49255 | def failfilemerge(*args, **kwargs): | ||
|
r46273 | raise error.Abort(b"^C") | ||
|
r27988 | |||
|
r43346 | |||
|
r27988 | def extsetup(ui): | ||
|
r49261 | extensions.wrapfunction(filemerge, 'filemerge', failfilemerge) | ||