mirror of
https://github.com/facebook/sapling.git
synced 2024-10-11 09:17:30 +03:00
666f7299d3
Summary: This diff is part of the series to avoid downloading the same bundle a few times. Finally reuse the same bundlerepo. Test Plan: arc unit Reviewers: #mercurial Subscribers: mjpieters, #sourcecontrol Differential Revision: https://phabricator.intern.facebook.com/D4612094 Tasks: 15389402
15 lines
465 B
Python
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)
|