crashgetbundler.py
12 lines
| 287 B
| text/x-python
|
PythonLexer
/ tests / crashgetbundler.py
Pierre-Yves David
|
r30914 | from __future__ import absolute_import | ||
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) | ||||