[PATCH 3 of 4] branch closing: Hide closed branches from "branches" output

John Mulligan phlogistonjohn at asynchrono.us
Thu Dec 11 16:33:56 CST 2008


On Thu, Dec 11, 2008 at 10:32:32PM +0100, Dirkjan Ochtman wrote:
> On 11/12/2008 21:10, John Mulligan wrote:
>> Remove the closed branches from the output of hg branches
>> and disallows using the branch name in 'hg co'.
>
> I think we should still allow updating to the branch name. There's not 
> really any reason not to support it, right? And clone -r will still work 
> with branch revisions, right?
>

At first I didn't think so, because I didn't know how to express what
change set a closed branch name should point to. But I did a little
digging around in the archives and found this from Matt:

>> There should instead be a precedence ordering. If I
>> say "merge with foo", the open branch head closest to tip is what I
>> should get. If there is none, I should get the closed branch head
>> closest to tip.

So the ordering to what head you get when you ask for a branch name: 
 - If there are open heads, give the tipmost of those
 - If there are no open heads, give the tipmost closed head

This seems to make sense from what the user would want. I will take a
whack at that, thanks.


> Cheers,
>
> Dirkjan


More information about the Mercurial-devel mailing list