如何有效管理第三方应用程序的代码更改

发布于 2024-07-27 19:59:00 字数 183 浏览 1 评论 0原文

我的主站点建立在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

初见 2024-08-03 19:59:00

我还没有尝试过这个,但我想这样的过程可能会起作用:

  1. 下载最新版本的 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:

  1. 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.

你如我软肋 2024-08-03 19:59:00

如果需要,您也可以使用 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]

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文