Mercurial > hg
view tests/crashgetbundler.py @ 34903:16d9f0b3e134
build: build deb/rpm independently on config/extensions in the host system
Reverts 5aac617a028d and replaces it with a more general solution.
- works for both rpm and deb
- sidesteps eventual problems with local extensions that have nothing to do with
the build process (hg-git, for example, fails with version 4.4 because
dedab036215d removed peerrepository, and hg-git still uses it as of 0.8.9)
author | muxator <a.mux@inwind.it> |
---|---|
date | Tue, 17 Oct 2017 22:46:08 +0200 |
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)