[PATCH 0 of 2] Added improved named branch support to heads, branch and fetch.

Peter Arrenbrecht peter.arrenbrecht at gmail.com
Thu Sep 11 02:32:15 CDT 2008


On Tue, Sep 9, 2008 at 8:48 PM, Matt Mackall <mpm at selenic.com> wrote:
>
> On Tue, 2008-08-26 at 12:45 +0200, Sune Foldager wrote:
[snip]
>> 3. In general, is it best to get the current named branch name from the
>>    dirstate or from the 'last commit' (first parent, say)? I do the former
>>    in my patch to the heads command, but the latter in the fetch command.
>
> Dirstate. ie:
>
> repo[None].branch()

So repo[None] is preferred over repo.dirstate?


More information about the Mercurial-devel mailing list