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