Mercurial > hg > mercurial-source
view tests/crashgetbundler.py @ 32414:632e07e72a22
runtests: unset editor and pager related environment variables
Those environment variables could affect some configuration and future
tests. Drop them to avoid issues.
author | Jun Wu <quark@fb.com> |
---|---|
date | Sun, 26 Mar 2017 20:58:54 -0700 (2017-03-27) |
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)