Ege*_*can 5 version-control mercurial
我使用以下搜索表达式来查找我们的mercurial存储库中未关闭的所有头:
head() and not closed() and not branch('default')
Run Code Online (Sandbox Code Playgroud)
但是,我有一个命名功能分支的约定fb-(target-release)-(feature-name),我也想过滤fb 名称开头的命名分支.如果没有将输出连接到另一个应用程序,这可能吗
您可以在表达式中使用正则branch表达式.来自hg help revset:
"branch(string or set)"
All changesets belonging to the given branch or the branches of the
given changesets.
If "string" starts with "re:", the remainder of the name is treated as a
regular expression. To match a branch that actually starts with "re:",
use the prefix "literal:".
Run Code Online (Sandbox Code Playgroud)
所以要fb-在名称的开头匹配:
head() and not closed() and not branch('default') and branch('re:^fb-')
Run Code Online (Sandbox Code Playgroud)