Git have merge-base command that show common ancestors of two or more branches. What analog for Mercurial and bzr?