# HG changeset patch # User Pierre-Yves David # Date 1391255369 28800 # Node ID b79b405583af1ecd3eb9d1f08a739d287b35253c # Parent c9bceafc61be52b224ad9e79323c46dce62c6176 pull: move `force` argument into pull object One more step toward a more modular pulh function. diff -r c9bceafc61be -r b79b405583af mercurial/exchange.py --- a/mercurial/exchange.py Thu Jan 30 17:35:55 2014 -0800 +++ b/mercurial/exchange.py Sat Feb 01 03:49:29 2014 -0800 @@ -382,13 +382,15 @@ afterward. """ - def __init__(self, repo, remote, heads=None): + def __init__(self, repo, remote, heads=None, force=False): # repo we pull from self.repo = repo # repo we pull to self.remote = remote # revision we try to pull (None is "all") self.heads = heads + # do we force pull? + self.force = force def pull(repo, remote, heads=None, force=False): pullop = pulloperation(repo, remote, heads)