How can one change the name of a tag?

后端 未结 5 1214
我在风中等你
我在风中等你 2021-02-19 03:59

I have made a tag in mercurial:

hg tag release_123

Later on I found out that the name was wrong, it should be release_124. Is it pos

5条回答
  •  借酒劲吻你
    2021-02-19 04:30

    I would do it by removing the tag and then adding a new tag with the new name

    The Mercurial tag wiki explains how to remove a tag:

    How do I remove a tag?

    Either by

    • hg tag --remove tagname

    (this being the nearest equivalent to cvs tag -d)

    • adding tagname 0000000000000000000000000000000000000000 to the end of .hgtags

    • removing all references to tagname in .hgtags (but this might confuse the multiple-head tag collision resolution algorithm)

提交回复
热议问题