Where should we put our tags?

Greg Ward greg-hg at gerg.ca
Tue Jan 12 16:48:04 CST 2010


On Tue, Jan 12, 2010 at 11:32 AM, wol <simonh at symbian.org> wrote:
> We're wondering whether going forward it would be a better idea to separate
> all our tagging changesets from our tagged changesets, and put them all on
> one branch (called "tags" for want of anything more exciting).
>
> Where it's not too late, the first revision on the tags branch would be a
> child of the null changeset, so we'd keep our tag meta-data away from our
> code complately. We'd expect to create some hooks to keep them apart as
> well.

Why not just put them all on default?  Then you never have to merge
.hgtags changes (assuming default is the eventual target for all your
merges).  Easy to enforce that with a hook too.

Creating a separate branch just for .hgtags is ... interesting but
weird.  If you start that branch from null and never merge it, then
you essentially have two completely independent graphs in your repo.
Should work, but why go to the trouble?  Easiest way is almost
certainly to just use default.

Greg


More information about the Mercurial mailing list