Terminology: what to call the trunk

Greg Ward gerg.ward+hg at gmail.com
Thu Dec 4 17:05:58 UTC 2008


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?

Now the interesting challenge is how to make that happen on a
conversion from CVS ...

Thanks!

       Greg



More information about the Mercurial mailing list