Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to move a tag?

I want to start using tags in Mercurial. I plan to have a "stable" tag that always points to the last good revision.

As I understand it, I can tag the current changeset via hg tag stable.

What's the proper way to move the tag? When I try to run hg tag stable again it tells me:

abort: tag 'stable' already exists (use -f to force)

And if I force it, I get this bug which has no resolution or comments. i.e., it duplicates the old tag. I don't even know why the tag needs to be in there more than once in the first place; I just want to update it to point to a single changeset.

like image 322
mpen Avatar asked Aug 20 '13 16:08

mpen


1 Answers

As @guessimtoolate and @Martin Geisler already pointed out, you can use a named branch to accommodate all good revisions (which is also the way we use hg at the company). Another way is to use bookmarks, which act as movable labels attached to one revision.

like image 73
Rudi Avatar answered Oct 11 '22 09:10

Rudi