comparison mercurial/localrepo.py @ 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 4d52e6eb98ea
children 6e431e1635b6
comparison
equal deleted inserted replaced
22641:ffd0f6b1c29d 22642:45e50d8546d9
1572 1572
1573 r.append(l) 1573 r.append(l)
1574 1574
1575 return r 1575 return r
1576 1576
1577 def pull(self, remote, heads=None, force=False): 1577 def pull(self, remote, heads=None, force=False, **kwargs):
1578 return exchange.pull (self, remote, heads, force) 1578 return exchange.pull(self, remote, heads, force, **kwargs)
1579 1579
1580 def checkpush(self, pushop): 1580 def checkpush(self, pushop):
1581 """Extensions can override this function if additional checks have 1581 """Extensions can override this function if additional checks have
1582 to be performed before pushing, or call it if they override push 1582 to be performed before pushing, or call it if they override push
1583 command. 1583 command.