BrentKnight + internals + practices   4

Tag - Mercurial
How do tags work in Mercurial?

Tags work slightly differently in Mercurial than most revision systems. The design attempts to meet the following requirements:

1. be version controlled and mergeable just like any other file

2. allow signing of tags

3. allow adding a tag to an already committed changeset
allow changing tags in the future

Thus Mercurial stores tags as a file in the working dir. This file is called .hgtags and consists of a list of changeset IDs and their corresponding tags. To add a tag to the system, simply add a line to this file and then commit it for it to take effect. The hg tag command will do this for you and hg tags will show the currently effective tags.
introduction  mercurial  tag  overview  sourcecontrol  versioncontrol  wiki  official  best  practices  philosophy  design  criteria  criteria  design  conceptual  concepts  internals  hg  mercurial  tags  dvcs 
may 2012 by BrentKnight

Copy this bookmark:



description:


tags: