On Sun, Aug 15, 2010 at 10:19 PM, Bram Moolenaar wrote:
>
> Xavier de Gaye wrote:
>>
>> The 'vim73' branch can be given the name of the 'default' branch with
>> the 'hg branch --force default' command after the 'default' branch is
>> named 'vim72' with the 'hg branch vim72' command (both followed by
>> commit).
>> ...
>
> Now that I'm ready to make vim73 the default branch, it occurs to me
> that when I do this, doing "hg update vim73" will stop working.
>
> What I would like to do is keep the "vim73" label on the branch, but
> make it the default one.
>
> So currently:
>
>        hg clone ...     gives you the default branch, Vim 7.2.1234
>        hg update vim73  switches to Vim 7.3
>
> What I would like to get:
>
>        hg clone ...     gives you the default branch, Vim 7.3.001
>        hg update vim73  stays on the default branch


I understand that 'branch' is an attribute of a changeset with a
single value ('default' or 'vim73', but not both), so that it is not
possible to have 'hg update default' and 'hg update vim73' give the
same result.



>        hg update vim72  switches to Vim 7.2.1234
>
> Is that possible?  Or does making vim73 the default branch always have
> the result that switching to the vim73 branch stops working?
>
> An acceptable alternative would be that the default branch has the
> latest version, including patches, while "vim73" is plain 7.3, no patches.


'"vim73" is plain 7.3, no patches' is what happens when the 'vim73'
branch is renamed the 'default' branch after the vim73 release have
been made.

Attached is a shell script that creates a repository in a new
'branch_test' directory and runs a sequence of hg commands that
reproduce what happens when branches are renamed this way.  After the
script is run and cloning the repository, the cloned repo behaves as
in the "acceptable alternative" above.


Xavier

-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Attachment: hg_branch_test.sh
Description: Bourne shell script

Raspunde prin e-mail lui