Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Mercurial and the Trunk folder

Tags:

mercurial

I'm new to Mercurial. I'm used to use subversion. There was a habit of using trunk as the main folder for an project.

When I create a new repository in Mercurial, should I name the default branch as Trunk ?

like image 912
user137348 Avatar asked Jul 22 '10 19:07

user137348


2 Answers

Using copied directories for tags and branches are a serious design flaw in SVN, regardless what the manuals say. It introduces many problems, of which the most serious one is the fact that the whole tagging vs. branching model relies only on convention, but there is really nothing preventing anyone from branching in the "wrong" directory.

The second big flaw with the approach is that it encourages giant project structures, since people want to keep their single {trunk,tags,branches} at top level. Now one can happily go and copy (~branch) of only one sub-directory or even file, which also creates a potential big mess.

So don't get too tied up with the SVN way to do things, but instead learn and embrace the "right" way to do things, as in Hg or Git. Forget about trunks and branches directories, and set up your project structure in some sane way.

like image 148
Kai Inkinen Avatar answered Oct 04 '22 05:10

Kai Inkinen


I have never found it needed.

like image 40
Paul Nathan Avatar answered Oct 04 '22 04:10

Paul Nathan