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