Search code examples
mergemercurialbranchchangesettransplant

In Mercurial (hg), how do you query the hg database for changeset information?


I have a changeset, 32ada6b3ff3fd4b5d2d0e3da4ba72c5634da7857. This changeset has been transplanted and merged into various branches. Following a transplant from branch to branch is fairly easy. The transplant information shows up doing an "hg log -r 32ada6b3ff3fd4b5d2d0e3da4ba72c5634da7857". From there, it's just an iterative process.

How can I find out what branches this changeset has been merged or branched to? Is there a way to query the hg database for this information?


Solution

  • Branches of descendants of 32ada6b3 are (in short syntax)

    hg log -r "branch(32ada6b3::)"
    

    there main change is only used predicate