Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Tortoise HG - Add a tag on commit

At the moment, I only know how to add a tag after a commit. This means that a get a second commit that just contains the tag. Is it possible to add a tag on commit?

like image 560
Casebash Avatar asked Dec 22 '10 03:12

Casebash


1 Answers

No, because a tag is an entry in the .hgtags file at the root of your repository containing the changeset id and the tag name, and this file itself is under revision control. The changeset id isn't known until the changeset is created, so tagging creates another changeset to check in the .hgtags file recording the tag for that changeset.

like image 52
Mark Tolonen Avatar answered Sep 27 '22 19:09

Mark Tolonen