# HG changeset patch # User Siddharth Agarwal # Date 2014-02-28 03:56:36 # Node ID 004a1744088dbd42abf3cfad4ac71c2547be630d # Parent 710c2755e66a1322d78911a18362636b3b0ead2c exchange: fix docs for pulloperation 'remote' is actually the remote, not the repo one is pulling into. This confused me quite a bit. diff --git a/mercurial/exchange.py b/mercurial/exchange.py --- a/mercurial/exchange.py +++ b/mercurial/exchange.py @@ -378,14 +378,14 @@ class pulloperation(object): It purpose is to carry push related state and very common operation. - A new should be created at the begining of each push and discarded + A new should be created at the begining of each pull and discarded afterward. """ def __init__(self, repo, remote, heads=None, force=False): - # repo we pull from + # repo we pull into self.repo = repo - # repo we pull to + # repo we pull from self.remote = remote # revision we try to pull (None is "all") self.heads = heads