问题
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.
What revset query can I pass to hg log
to trace a changeset as it gets merged between branches?
回答1:
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.
来源:https://stackoverflow.com/questions/11889485/how-do-i-find-the-merge-that-moved-my-changeset-to-another-branch