I have not seen such a tag move operation, but it essentially copies something and deletes the original like this:
hg tag --remove stable hg tag -r newrevisionhash stable
Or add some suffix to your tags, such as version number. It will also allow you to keep track of your releases.
Opinion 1: I always thought that Mercurial was more concerned with preserving the history, and although you can change something in git, in Mercurial you will have to rewrite it instead.
Opinion 2: another alternative to labeling stable issues would be to store them on the same branch. where I work default contains only stable code. All other work is performed in isolated branches.
Dirty single line tag update:
current='hg log -l1 --template '{node}''; hg tag --remove stable; hg tag -r $current stable
It seems like this atrocity can even be added as a Mercurial alias in .hgrc :
[alias] movetag=!(current='hg log -l1 --template '{node}''; $HG tag --remove stable; $HG tag -r $current stable)
I fix the value of the current tooltip, since deleting / adding tags is itself a commit, so they "move" the tooltip forward (I see nothing wrong with tip tagging - just for the sake of accuracy). There, of course, there is the potential to make it more beautiful, but they worked for me.
guessimtoolate
source share