[PATCH] dirstate: remove obsolete comment from setbranch

Augie Fackler raf at durin42.com
Thu Nov 29 11:37:59 CST 2012


queued, thanks

On Nov 29, 2012, at 10:51 AM, Tim Henigan <tim.henigan at gmail.com> wrote:

> # HG changeset patch
> # User Tim Henigan <tim.henigan at gmail.com>
> # Date 1354196694 18000
> # Node ID 1683bca3175285d482633c4c7ed2231b338f6738
> # Parent  e853d27956fb0a25dcaac29b18bb0d5719297830
> dirstate: remove obsolete comment from setbranch
> 
> This comment should have been removed in e689b0d91546, when the call
> to scmutil.checknewlabel was removed.
> 
> diff --git a/mercurial/dirstate.py b/mercurial/dirstate.py
> --- a/mercurial/dirstate.py
> +++ b/mercurial/dirstate.py
> @@ -260,7 +260,6 @@
>         return copies
> 
>     def setbranch(self, branch):
> -        # no repo object here, just check for reserved names
>         self._branch = encoding.fromlocal(branch)
>         f = self._opener('branch', 'w', atomictemp=True)
>         try:
> _______________________________________________
> Mercurial-devel mailing list
> Mercurial-devel at selenic.com
> http://selenic.com/mailman/listinfo/mercurial-devel



More information about the Mercurial-devel mailing list