tests/crashgetbundler.py
author Sushil khanchi <sushilkhanchi97@gmail.com>
Sat, 02 Jun 2018 15:55:28 +0530
changeset 38232 ad50f0399e1e
parent 30876 f3807a135e43
child 43076 2372284d9457
permissions -rw-r--r--
graft: correct documentation about options can be reapplied Now options --user and --date can be reapplied after we hit a conflict. Differential Revision: https://phab.mercurial-scm.org/D3678

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)