Mercurial > hg
view tests/crashgetbundler.py @ 32559:c8c9feffbd35
copies: rename m1 to msrc
Small refactoring that renames `m1` parameter name to a more clearer name
`msrc`.
author | Stanislau Hlebik <stash@fb.com> |
---|---|
date | Mon, 29 May 2017 05:52:15 -0700 |
parents | f3807a135e43 |
children | 2372284d9457 |
line wrap: on
line source
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)