如何使用补丁更新本地版本的 Drupal (BZR)
我有一个在 Drupal 6.14 上本地运行的网站,我需要将其升级到 drupal 6.19 该网站由 BZR 进行版本控制。我了解 BZR 基础知识,但我不知道如何以“正确”的方式更新我的存储库。我不想简单地覆盖所有 drupal 文件并提交更改。我想将旧版本与新版本进行比较,并创建补丁来应用新修复。
谁能向我解释我该如何做到这一点?
PS:我在 win 上运行 bzr 1.17
提前致谢。 亲切的问候,BBJ
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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
应该没什么大不了的,你做就应该没问题。
或者,如果您没有实际存储代码的位置,则可以代替步骤 4。
bzr diff > 创建补丁patch.diff
patch -p0
patch.diff(需要位于存储库的根目录中)。您可以使用
patch
应用补丁,有关于如何以不同方式使用它的指南。这可以一次性完成,也可以从 6.14 到 6.19 逐步完成。
如果需要,请记住更新数据库。
There shouldn't be much to it, you should be fine by doing.
Alternative, if you don't have a place where you actually store the code, instead of step 4 you can.
bzr diff > patch.diff
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.