Terminology: what to call the trunk
Benoît Allard
benoit at aeteurope.nl
Thu Dec 4 11:14:36 CST 2008
Greg Ward wrote:
> On 04 December 2008, Matt Mackall said:
>> If your first commit is not on the default branch, you can have a tree
>> with no default branch.
>
> Cool. I think.
>
>>> Or is "default" just the *default* name of the trunk? I.e. can I
>>> decide that I want to call the trunk "trunk" instead of "default"?
>> Sorry, no. The branch is -actually- named '' and 'default' is an alias
>> for that.
>
> Hmmm. I'll have to play with this, but I'm thinking of this:
>
> hg init
> hg branch trunk
> # start hacking and committing...
>
> Then *poof* the branch that I chose to call "trunk" is the mainline of
> development. Is this likely to cause problems? I.e. are there
> commands/extensions/tools out there that expect branch '' (aka
> 'default') to exist?
clone automatically update to the default branch, so you might also need
to `hg update trunk` after each clone.
Regards,
Benoit
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 4197 bytes
Desc: S/MIME Cryptographic Signature
Url : http://selenic.com/pipermail/mercurial/attachments/20081204/5622e04c/attachment.bin
More information about the Mercurial
mailing list