Mercurial > hg
view tests/crashgetbundler.py @ 48893:895085109842
archival: remove check for Python 2
Differential Revision: https://phab.mercurial-scm.org/D12296
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Mon, 21 Feb 2022 10:31:00 -0700 |
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)