How to update my local version of Drupal with a patch (BZR)
I have a website running locally on开发者_运维百科 Drupal 6.14 and I need to upgrade it to drupal 6.19 The website is version controlled with BZR. I know the BZR basics but I don't know how to update my repository the "correct" way. I don't want to simply overwrite all drupal files and commit the changes. I want to compare my old version with the new version and create a patch to apply the new fixes.
Can anyone explain to me how I could do this?
Ps: I'm running bzr 1.17 on win
Thanks in advance. Kind regards, BBJ
There shouldn't be much to it, you should be fine by doing.
- Make a clone of your repo / use a local development version.
- Apply the changes by replaces the files.
- Review the changes.
- Commit changes to repo
- Push changes to VCS server
- Fetch the changes to the server/production site.
Alternative, if you don't have a place where you actually store the code, instead of step 4 you can.
- Create a patch using
bzr diff > patch.diff
- Upload patch to server.
- Apply the patch:
patch -p0 < patch.diff
(need to be in the root of your repo). You apply patches withpatch
, there are guides on how to use it in different ways.
This can be done in one chunk, or step by step from 6.14 to 6.19.
Remember to update the db if needed.
精彩评论