mercurial - Which branches contain this change? -


apologies asking dumb question, can't seem find answer anywhere...

i have huge, complex mercurial repo dozen branches on it. 6 months ago fixed bug on branch a. how discover other branches (if any) contain change?

one obvious non-answer find change-set in tortoise hg , manually follow tangled revision graph through 6 months of changes until find information i'm after. theoretically works, it's far time-consuming , error-prone human hand.

surely there's way automate this...

p.s. trying find google search terms exercise in frustration.

i think command want:

hg log -r "heads(descendants(xxx) or descendants(destination(xxx)) or destination(xxx) or xxx)" -t "{branch}\n" 

xxx must replaced either hash or changeset number of bugfix changeset.

here's explanation of above expression:

heads(set)       - considers heads of changeset set descendants(rev) - considers direct descendants of changeset destination(rev) - considers grafts, transplants or rebases of changeset rev              - changeset 

so expression means this: heads either:

  • descendants of bugfix changeset
  • descendants of grafts, transplants, or rebases, of bugfix changeset
  • grafts, transplants, or rebases, of bugfix changeset (in case these have no descendants)
  • the bugfix changeset (in case head of branch)

more information revsets can found here: mercurial help: revsets.


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -