Mercurial > public > mercurial-scm > hg-stable
view tests/crashgetbundler.py @ 32753:2b0a8b0f3435
perf: add a perfbookmarks command
A new command dedicated to benchmark of bookmark initialization.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Wed, 07 Jun 2017 18:22:11 +0100 |
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)