按分支名称过滤 Mercurial 状态
我想获取一系列修订的 hg 状态列表,并过滤给定分支名称的列表。
例如,此命令的问题在于它包含来自多个分支的更改,而我只对特定分支感兴趣:
hg status --rev 150:175
有没有办法使用 hg 或主流 hg 工具为此列表按分支添加额外的过滤器?
I'd like to get an hg status list for a range of revisions, and also filter the list for a given branch name.
e.g. The issue with this command is that it includes changes from multiple branches, and I'm only interested in a particular branch:
hg status --rev 150:175
Is there a way to add an additional filter by branch for this list with hg or a mainstream hg tool?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以使用 revsets 来执行此操作:
hg status --rev "150:175和分支()
”You can do this using revsets:
hg status --rev "150:175 and branch(<BRANCH_NAME>)
"我相信您可以使用 revsets (
hg help revsets
) 来执行此操作。有很多用于选择修订版本的选项,但我认为您想要的是以下内容:修订集有时可能很棘手,但它们非常强大,因此非常值得在
hg 中阅读它们帮助。
I believe that you can use revsets (
hg help revsets
) to do this. There are a large number of options for selecting revisions, but I think that what you want would be something along these lines:Revsets can be tricky at times, but they are very powerful, and so well worth reading about them in
hg help
.