Mercurial > hg
changeset 22642:45e50d8546d9
localrepo: pass arbitrary kwargs from `repo.pull` to `exchange.pull`
We'll add bookmark-related arguments to `repo.pull` so we need to widen the
signature of `repo.pull`. We should probably kill `repo.pull` now that
`repo.push` is dead but this is outside the scope of this series.
author | Pierre-Yves David <pierre-yves.david@fb.com> |
---|---|
date | Fri, 26 Sep 2014 12:51:55 -0700 |
parents | ffd0f6b1c29d |
children | 3b1c0e1ede4c |
files | mercurial/localrepo.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/localrepo.py Fri Sep 26 10:59:29 2014 -0700 +++ b/mercurial/localrepo.py Fri Sep 26 12:51:55 2014 -0700 @@ -1574,8 +1574,8 @@ return r - def pull(self, remote, heads=None, force=False): - return exchange.pull (self, remote, heads, force) + def pull(self, remote, heads=None, force=False, **kwargs): + return exchange.pull(self, remote, heads, force, **kwargs) def checkpush(self, pushop): """Extensions can override this function if additional checks have