Closed (fixed)
Project:
Drush
Version:
8.x-6.x-dev
Component:
PM (dl, en, up ...)
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
7 Jul 2013 at 21:56 UTC
Updated:
22 Jul 2013 at 04:41 UTC
How can I use pm-update or pm-updatecode for projects that have patches which aren't yet included in a stable release on d.o.? I don't want to have to re-apply the patches (if necessary) to the updated project.
I've thought about modifying the Diff Update script for my needs, but I wanted to check first what the drush best practice is for updating patched projects. Thoughts?
Comments
Comment #1
greg.1.anderson commentedThere is no best practice for automating merges. See also #392762: Kitten-o-matic
I would recommend keeping your Drupal site checked in to git. Keep one branch for unpatched modules, and another branch with your patches. Switch to the unpatched branch before running pm-updatecode. Use git tools to merge changes from your old branch into a new fork of the unpatched branch. Throw away old patch branches when you don't need them any more.