Created
January 30, 2011 19:28
-
-
Save palfrey/803149 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # get all the open heads | |
| heads = revs(repo, "head() & (! closed())") | |
| # find the common ancestor of default and revision_number ... | |
| ancestor = revs(repo, "ancestor(%d, default)"% revision_number )[0] | |
| # ... then get the path of changes between the common ancestor | |
| # and our original revision | |
| path = revs(repo, "%d::%d"%(ancestor, revision_number)) | |
| # The above can also be done just as | |
| path = revs(repo, "ancestor(%d, default)::%d" %(revision_number, revision_number)) | |
| # find all the revisions that change the files under patches/ | |
| patches = revs(repo, 'files("patches/*")') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment