Git have merge-base command that show common ancestors of two or more branches.
What analog for Mercurial and bzr?
Use revsets:
"ancestor(single, single)" Greatest common ancestor of the two changesets. $ hg log -r 'ancestor(rev1, rev2)'