如何找到将变更集移动到另一个分支的合并? [英] How do I find the merge that moved my changeset to another branch?

查看:49
本文介绍了如何找到将变更集移动到另一个分支的合并?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

几个月前,我在默认分支的文件中进行了更改.今天,我们发现更改以某种方式合并到另一个分支中.当我对该文件运行hg log时,只看到原始的变更集.我看不到该变更集如何进入分支.

I made a change a few months ago in a file in the default branch. Today we discovered that change somehow got merged into another branch. When I run hg log against that file, I'm only seeing the original changeset. I'm not seeing how that changeset made it into the branch.

当分支之间合并变更集时,我可以传递给hg log哪些修订集查询来跟踪变更集?

What revset query can I pass to hg log to trace a changeset as it gets merged between branches?

推荐答案

如果所涉及的变更集位于命名分支上,则可以使用hg log -r 'descendants(<the_rev>) and branch(default)',显示的第一个变更集应该是合并.

If the changeset in question lives on a named branch, you can use hg log -r 'descendants(<the_rev>) and branch(default)', and the first changeset shown should be the merge.

这篇关于如何找到将变更集移动到另一个分支的合并?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆