failfilemerge.py
16 lines
| 281 B
| text/x-python
|
PythonLexer
/ tests / failfilemerge.py
Mads Kiilerich
|
r30332 | # extension to emulate interrupting filemerge._filemerge | ||
timeless
|
r27988 | |||
from mercurial import ( | ||||
Yuya Nishihara
|
r28772 | error, | ||
timeless
|
r27988 | extensions, | ||
Yuya Nishihara
|
r28772 | filemerge, | ||
timeless
|
r27988 | ) | ||
Augie Fackler
|
r43346 | |||
Martin von Zweigbergk
|
r49255 | def failfilemerge(*args, **kwargs): | ||
Martin von Zweigbergk
|
r46273 | raise error.Abort(b"^C") | ||
timeless
|
r27988 | |||
Augie Fackler
|
r43346 | |||
timeless
|
r27988 | def extsetup(ui): | ||
Martin von Zweigbergk
|
r49261 | extensions.wrapfunction(filemerge, 'filemerge', failfilemerge) | ||