Mark A. Hershberger <mhershberger <at> wikimedia.org> writes:
Rusty Burchfield <gicodewarrior <at>
gmail.com> writes:
If anyone wants to mess with the code (it is in
Ruby), please let me
know and I will get it up on GitHub.
I'd like to see exactly what you're doing and port it to my bz
framework. Please post it!
Here you go:
https://github.com/GICodeWarrior/patch-tester
It is a hack right now, but if you don't obsolete it with your framework I may
improve it. ;-)
Basically I fetch pages with curb(libcurl) and pull out what I need with
nokogiri(libxml2) and some css selectors. Then I take each patch and attempt an
exhaustive search (after trying the easy cases) to see if it will apply.
I started with the Bugzilla API, but it was pretty annoying so I took the "easy"
route.
In at least one case it appears to have found a way to apply a really old patch
against a file that was actually moved within the tree. :-)
~Rusty