[PATCH] exchange: fix docs for pulloperation
Siddharth Agarwal
sid0 at fb.com
Fri Feb 28 03:58:56 UTC 2014
# HG changeset patch
# User Siddharth Agarwal <sid0 at fb.com>
# Date 1393559796 28800
# Thu Feb 27 19:56:36 2014 -0800
# Node ID a28b2fcea899f439decb677d725d6e14b6a52ab1
# Parent 02c303f6491772c1df4d5ce25f2bde5884ee3b96
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 @@
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 into
+ self.repo = repo
# 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
More information about the Mercurial-devel
mailing list