mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 15:27:13 +03:00
sparse: update hg.updaterepo wrapper to match upstream
Summary: Upstream changed the api of this function. Let's add args and kwargs to cover future api changes. Test Plan: Ran the tests Reviewers: #mercurial, quark Reviewed By: quark Subscribers: quark, mjpieters Differential Revision: https://phabricator.intern.facebook.com/D4667282 Signature: t1:4667282:1488910879:7db5764704dd345946f7f933e7e2c4a8fd77b699
This commit is contained in:
parent
1cb65599a2
commit
6434f61b55
@ -217,10 +217,10 @@ def _clonesparsecmd(orig, ui, repo, *args, **opts):
|
||||
if sum([include, exclude, enableprofile]) > 1:
|
||||
raise error.Abort(_("too many flags specified."))
|
||||
if include or exclude or enableprofile:
|
||||
def clone_sparse(orig, self, node, overwrite):
|
||||
def clone_sparse(orig, self, node, overwrite, *args, **kwargs):
|
||||
_config(self.ui, self.unfiltered(), pat, include=include,
|
||||
exclude=exclude, enableprofile=enableprofile)
|
||||
return orig(self, node, overwrite)
|
||||
return orig(self, node, overwrite, *args, **kwargs)
|
||||
extensions.wrapfunction(hg, 'updaterepo', clone_sparse)
|
||||
return orig(ui, repo, *args, **opts)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user