crashgetbundler.py
10 lines
| 247 B
| text/x-python
|
PythonLexer
/ tests / crashgetbundler.py
Pierre-Yves David
|
r30914 | from mercurial.i18n import _ | ||
Augie Fackler
|
r43346 | from mercurial import changegroup, error, extensions | ||
Pierre-Yves David
|
r30914 | |||
def abort(orig, *args, **kwargs): | ||||
raise error.Abort(_('this is an exercise')) | ||||
Augie Fackler
|
r43346 | |||
Pierre-Yves David
|
r30914 | def uisetup(ui): | ||
extensions.wrapfunction(changegroup, 'getbundler', abort) | ||||