Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想找出哪些标签已应用于我的 mercurial 存储库中某个版本的文件。
这在查找错误时可能很有用。然后您可能想知道哪些其他标记的发布版本也可能受到同一问题的影响。
有没有一种简单的方法可以做到这一点,还是我的想法仍然太“CVS-ish”?
您可以使用
hg log -r 'tag()' myfile.txt
查看 myfile.txt 的所有标签和
hg log -r 'tag() and ::23' myfile.txt
显示自版本 23 以来带有 myfile.txt 标记的所有提交。我想这不完全是您想要做的,但也许它朝着正确的方向发展。