[PATCH] exchange: fix docs for pulloperation

Augie Fackler raf at durin42.com
Fri Feb 28 11:19:32 CST 2014


On Thu, Feb 27, 2014 at 07:58:56PM -0800, Siddharth Agarwal wrote:
> # 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

queued, thanks

>
> '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
> _______________________________________________
> Mercurial-devel mailing list
> Mercurial-devel at selenic.com
> http://selenic.com/mailman/listinfo/mercurial-devel


More information about the Mercurial-devel mailing list