Debian Codegraph @

tests/crashgetbundler.py

raw
1 from mercurial.i18n import _
2 from mercurial import changegroup, error, extensions
3
4
5 def abort(orig, *args, **kwargs):
6 raise error.Abort(_('this is an exercise'))
7
8
9 def uisetup(ui):
10 extensions.wrapfunction(changegroup, 'getbundler', abort)