Show More
@@ -382,13 +382,15 b' class pulloperation(object):' | |||||
382 | afterward. |
|
382 | afterward. | |
383 | """ |
|
383 | """ | |
384 |
|
384 | |||
385 | def __init__(self, repo, remote, heads=None): |
|
385 | def __init__(self, repo, remote, heads=None, force=False): | |
386 | # repo we pull from |
|
386 | # repo we pull from | |
387 | self.repo = repo |
|
387 | self.repo = repo | |
388 | # repo we pull to |
|
388 | # repo we pull to | |
389 | self.remote = remote |
|
389 | self.remote = remote | |
390 | # revision we try to pull (None is "all") |
|
390 | # revision we try to pull (None is "all") | |
391 | self.heads = heads |
|
391 | self.heads = heads | |
|
392 | # do we force pull? | |||
|
393 | self.force = force | |||
392 |
|
394 | |||
393 | def pull(repo, remote, heads=None, force=False): |
|
395 | def pull(repo, remote, heads=None, force=False): | |
394 | pullop = pulloperation(repo, remote, heads) |
|
396 | pullop = pulloperation(repo, remote, heads) |
General Comments 0
You need to be logged in to leave comments.
Login now