sapling/tests/bundlerepologger.py
Saurabh Singh d9f299ffe8 infinitepush: move some infinitepush tests from fb-hgext/tests to tests
Summary:
Now that we moved infinitepush to hgext in D6691670, we can also move
the tests.

Test Plan: Ran all the tests.

Reviewers: stash, #mercurial, #sourcecontrol

Reviewed By: stash

Differential Revision: https://phabricator.intern.facebook.com/D6691848

Signature: 6691848:1515573470:628d092f14cf3ae21c036883243c80eb3b01aa72
2018-01-10 08:10:27 -08:00

15 lines
465 B
Python

# Copyright 2017 Facebook, Inc.
#
# This software may be used and distributed according to the terms of the
# GNU General Public License version 2 or any later version.
from mercurial import bundlerepo, extensions
from mercurial.i18n import _
def extsetup(ui):
extensions.wrapfunction(bundlerepo.bundlerepository, '__init__', _init)
def _init(orig, self, ui, *args, **kwargs):
ui.warn(_('creating bundlerepo'))
return orig(self, ui, *args, **kwargs)