开发者

How to update my local version of Drupal with a patch (BZR)

开发者 https://www.devze.com 2023-01-16 05:08 出处:网络
I have a website running locally on开发者_运维百科 Drupal 6.14 and I need to upgrade it to drupal 6.19

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.

  1. Make a clone of your repo / use a local development version.
  2. Apply the changes by replaces the files.
  3. Review the changes.
  4. Commit changes to repo
  5. Push changes to VCS server
  6. 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.

  1. Create a patch using bzr diff > patch.diff
  2. Upload patch to server.
  3. Apply the patch: patch -p0 < patch.diff (need to be in the root of your repo). You apply patches with patch, 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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号