Mercurial > hg
view tests/crashgetbundler.py @ 51797:2f8e7e384178
exchange: trivial simplification
Both sides of the condition do essentially the same thing, except one
with fastpath=True.
No functional changes.
author | Felipe Contreras <felipe.contreras@gmail.com> |
---|---|
date | Fri, 05 May 2023 06:08:36 -0600 |
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)