Skip to content
Snippets Groups Projects
Commit b79b4055 authored by Pierre-Yves David's avatar Pierre-Yves David
Browse files

pull: move `force` argument into pull object

One more step toward a more modular pulh function.
parent c9bceafc
No related branches found
No related tags found
No related merge requests found
......@@ -382,10 +382,10 @@
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
......@@ -386,9 +386,11 @@
# 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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment