Merging updated code from parallel Subversion repository

空扰寡人 提交于 2019-12-24 01:16:01

问题


I was wondering what steps people generally take when it comes to merging a live (continually updated) SVN respository with an offline one (updated less often), as an example, take my scenario:

A while ago I downloaded the BugTracker.NET system when it was at version 3.2.3. I've subsequently make some enhancements to the code for our business. We develop these under source control using SVN. Meanwhile of course, the core BugTracker.NET code has continued to be developed. I basically want all of the updates from the BugTracker.NET SourceForge repository (which I believe is also SVN) merged across into my own in-house repository.

What, in your opinion, is the best way to go about doing this?

Thanks,

Andy


回答1:


first, subversion is a suboptimal choice for such a workflow, try a distributed version control system like GIT, Bazaar, etc

if you have to stay on subversion, make use of the vendor-branch-pattern:

  • import the new version into a separate branch
  • merge the diff between V3.2.3 and the new version into your current trunk (you need to use the --ignore-ancestry option)


来源:https://stackoverflow.com/questions/2653573/merging-updated-code-from-parallel-subversion-repository

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!