Why are tags in commits
Christophe HENRY
listes at sbgodin.fr
Mon Feb 25 10:52:05 UTC 2013
Le Mon, 25 Feb 2013 10:13:14 +0000
"Kastner Masilko, Friedrich" <kastner-masilko at at.festo.com> a écrit :
> > From: mercurial-bounces at selenic.com
> > [mailto:mercurial-bounces at selenic.com] On Behalf Of Christophe
> > HENRY
> > (...)
> There is much information about how Mercurial's global tags work. A
> good start is here: http://mercurial.selenic.com/wiki/Tag .
Mhh... Right. I never payed attention at the whole text, only
considering the howto "make tags". Thanks also to Pierre-Yves David
for his answer.
> > As I understand that the tags should be available wherever I am,
> > why not manage them as the bookmarks? Please correct me, but as
> > tags are a global property of a repository, they should not be
> > dependent on commits. Or not?
>
> Bookmarks lack one important feature of global tags: history. You
> don't know who tagged what when with them. With global tags, you
> always see how a certain tag came into existence.
I understand also why I can find "000000..." lines in the tag file.
> While the design of Mercurial's tagging mechanism could be discussed
> based on today's available push-key infrastructure, I doubt that an
> equivalent concept - with all the features and the same maturity -
> could be carved out with yet another meta-data layer easily.
>
> What are your problems with it? Is something not working as expected?
I don't work as Mercurial expects ;-) First, I wonder why not use a
dedicated branch to hold all the tag version. For instance, you're in
the production branch and you tag for something in the "default" branch
by mistake. It's a bit ugly, and I would have liked to add tag being
in the default branch instead of the production branch.
Second, provided that we pull all the repository, how does Mercurial
knows what is the current state of the tags? Does it take the oldest
one? I didn't make an test yet.
Thanks for the answers.
--
Christophe HENRY
FR EO EN - http://www.sbgodin.fr
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: not available
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20130225/f901c1b4/attachment.asc>
More information about the Mercurial
mailing list