xendk / bandaid

Drush tool for patch management.
15 stars 7 forks source link

Similar to drush iq #17

Closed weitzman closed 10 years ago

weitzman commented 10 years ago

Have you see https://drupal.org/project/drush_iq, and its iq-apply-patch command? It worked great for a while, until d.o. upgraded. I think it could be great again.

Just want you to be aware. It might not have much to offer to bandaid.

xendk commented 10 years ago

There was also the drush patch command at one time, but Bandaid serves a different purpose.

It's a sort of alternative to having Drush make apply patches for those that commit the whole Drupal installation into Git. It uses a yaml file to keep track of which patches should be applied (and ideally also a human readable explanation as to why). What it tries to do is figure out what the original installed version of a module was, and uses that and the patches to figure out if there's any additional hacks applied. If all goes well, it's able to revert to the pristine module which can then be upgraded and have the patches reapplied.

Apart from making it easy to upgrade a module, even if heavily patched, it also tries to catch the shit before it hits the fan, in case someone did make a bobo. Which means that people are more likely to use it and actually upgrade the modules.

Of course it just produces one big local patch file if thrown a patched module without a proper yaml file, but even then it takes the tedium out of figuring out the base version and doing the diff.