[PATCH] dirstate: copyedit exception for no beginparentchange call

Pierre-Yves David pierre-yves.david at ens-lyon.org
Wed Sep 17 15:10:29 CDT 2014



On 09/17/2014 01:08 PM, Siddharth Agarwal wrote:
> # HG changeset patch
> # User Siddharth Agarwal <sid0 at fb.com>
> # Date 1410984483 25200
> #      Wed Sep 17 13:08:03 2014 -0700
> # Node ID 8b3f6c781ee228d4863c1c426d55dc7abb3a0417
> # Parent  48791c2bea1ceda4e4f28bc11651e281d636ce1a
> dirstate: copyedit exception for no beginparentchange call
>
> diff --git a/mercurial/dirstate.py b/mercurial/dirstate.py
> --- a/mercurial/dirstate.py
> +++ b/mercurial/dirstate.py
> @@ -257,8 +257,8 @@
>           See localrepo.setparents()
>           """
>           if self._parentwriters == 0:
> -            raise ValueError("cannot set dirstate parent without " +
> -                " calling dirstate.begingparentchange")
> +            raise ValueError("cannot set dirstate parent without "
> +                "calling dirstate.beginparentchange")

Can we get the indentation right in the same go?
(I'll consider queing it in a few hours (when my eyes will be back from 
thier field trip)

-- 
Pierre-Yves David


More information about the Mercurial-devel mailing list