mirror of
https://github.com/facebook/sapling.git
synced 2024-10-09 16:31:02 +03:00
15 lines
317 B
Python
15 lines
317 B
Python
|
from __future__ import absolute_import
|
||
|
|
||
|
from mercurial.i18n import _
|
||
|
from mercurial import (
|
||
|
changegroup,
|
||
|
error,
|
||
|
extensions
|
||
|
)
|
||
|
|
||
|
def abort(orig, *args, **kwargs):
|
||
|
raise error.Abort(_('this is an exercise'))
|
||
|
|
||
|
def uisetup(ui):
|
||
|
extensions.wrapfunction(changegroup, 'getbundler', abort)
|