Mercurial > hg
view tests/crashgetbundler.py @ 51604:32ba01b5669d
match: share code between includematcher and patternmatcher
No need to have this duplication.
author | Arseniy Alekseyev <aalekseyev@janestreet.com> |
---|---|
date | Tue, 16 Apr 2024 13:51:45 +0100 |
parents | 6000f5b25c9b |
children |
line wrap: on
line source
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)