[英]How to check if Mercurial tag already exists, from command-line?
如何从命令行脚本检查Mercurial标签是否已存在?
Simply check for the existance of the tag XXX (and ignore mercurial's output): 只需检查标签XXX是否存在(并忽略mercurial的输出):
hg log -rXXX
It will return error code 0 if the tag exists and 255 if it does not. 如果标签存在,它将返回错误代码0,否则返回255。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.