Branches and tags.

Daniel Santa Cruz byteshack at gmail.com
Thu May 11 07:37:22 CDT 2006


Hello Lluís

On 5/10/06, Lluís Batlle i Rossell <viriketo at gmail.com> wrote:
> Hi...
> I'd like to understand what branches are, and how I could reproduce a
> normal development where there is (most of the time) a single main
> branch, and there is a tag for each release.

In our team, we've discoved that it is a lot easier for us to just
keep different repositories around instead of keeping multiple
branches inside a single repository.  These extra repositories are
very cheap, as their files are hard-linked to the original files, plus
they have the added benefit that you can then just clone one of the
branches, instead of cloning the whole tree.

Under that kind of scenario, you can have:

RepositoryCurrentDevelopment
RepositoryVer1.0

Then your RepositoryVer1.0 can have the subsequent "bug" commits (1.1,
etc).  If you wish to get those bugs fixed also in your main repo,
then it is a trivial pull/push to that repository.  You can use tags
inside a repo to mark special points, such as the 1.1 revision for
RepositoryVer1.0.

Hope that helps.
Daniel



More information about the Mercurial mailing list