如何有效管理第三方应用程序的代码更改
我的主站点建立在 Invision Power Board 之上。 随着版本 3 刚刚发布,我想从一个干净的代码库开始并重新进行所有修改,但问题是,当 Invision 发布新版本时,跟踪我所做的修改以便我可以重新应用它们一直是一个混蛋去做。 虽然这个新版本将存储在 svn 中,但我仍然很难有效地更新到新版本。
提前致谢。
My main site is built on top of Invision Power Board. With version 3 just being released, i want to start with a clean codebase and remake all my modifications, but the problem is, when Invision release new versions, keeping track of the modifications I have made so I can reapply them has always been a bastard to do. While this new version will be stored in svn, i am still going to struggle to efficiantly update to new versions.
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我还没有尝试过这个,但我想这样的过程可能会起作用:
下载最新版本的 IPB 并将其放入名为“ipb-pure”的文件夹中。 在这里创建一个 Git 或 Mercurial 存储库并提交所有内容。
在其他地方克隆此存储库并将其命名为“ipb-custom”。 在这里进行所有自定义并提交它们。 不要将任何自定义推回“ipb-pure”。
新版本的 IPB(官方版本)可以提交到“ipb-pure”存储库中。 使用 Git/Mercurial 将这些更改拉入“ipb-custom”并合并头。 如果幸运的话,git/hg 会自动合并所有内容。
I haven't yet tried this, but I imagine a process like this might work:
Download latest version of IPB and put it in a folder called 'ipb-pure'. Create a Git or Mercurial repository here and commit everything.
Clone this repository elsewhere and call it 'ipb-custom'. Make all your customizations here and commit them. Don't push any customizations back to 'ipb-pure'.
New versions of IPB (official releases) can be commited into the 'ipb-pure' repository. Use Git/Mercurial to pull these changes into 'ipb-custom' and merge the heads. If you're lucky, git/hg will merge everything automatically.
如果需要,您也可以使用 svn 来完成此操作。 您可能需要阅读 svn 中的 '供应商分支'预订 [svnbook.red-bean.com]
You can also do this with svn if you want. You might want to read up on 'vendor branches' in the svn book [svnbook.red-bean.com]