SVN:只读存储库的分支? [英] SVN: branch of read only repository?

查看:106
本文介绍了SVN:只读存储库的分支?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以访问某个项目的只读SVN存储库.

I have access to a read-only SVN repository of a certain project.

我想通过自己的修改/添加来扩展该项目.如果我可以完全访问此存储库,则可以简单地创建自己的开发分支.但是,我还没有(也不会获得写访问权限).

I want to extent this project with my own modifications/additions. If I had full access to this repo, i could simply make my own development branch. However, I have not (and won't get write access).

我希望将所做的修改存储在(内部)存储库中,以便跟踪自己的开发.

I would like to have my modifications stored in an (internal) repository so I can keep track of my own developments.

是否可以使用可以解决此问题的SVN建立结构?

Is it possible to set up a construction using SVN that can deal with this?

最初,我在考虑使用以下结构创建(内部)SVN存储库:

Initially I was thinking about creating an (internal) SVN repository with a the structure as below:

  • 树干

  • 包含使用svn:externals的外部存储库的副本

分支

  • 基于主干的我的开发分支

但是,我很快发现,基于外部"文件夹创建分支并不简单(如果不是不可能的话). 我还希望能够将外部存储库中的更改合并到我自己的开发分支中.我也怀疑使用这种构造是否有可能.

However, I quickly found out that it is not straightforward (if not impossible?) to create a branch based upon an 'external' folder. I also want to be able to merge changes in the external repository into my own development branch. I also doubt whether this is possible using this construction.

是否可以使此构造工作?还是应该以一种完全不同的方式来处理这个问题?非常感谢您提供有关此问题的任何建议.

Is it possible to get this construction working? Or should I deal with this in a completely different way? Any advice on this issue is greatly appreciated.

谢谢

彼得

推荐答案

您在谁在哪里"方面犯了小错误

You made small mistake in the are "Who Where"

  • 您的供应商分支(svn:external)没有挂钩修订
  • 您自己的开发发生在主干中(最初创建为vendor-branch的svn副本)
  • You have vendor branch (svn:external) without peg-revision
  • Your own development happens in trunk (initally created as svn copy of vendor-branch)

您有时会从分支(供应商分支)合并到主干

From time to time you merge from branch (vendor-branch) to trunk

此方法对大型和复杂的上游项目有一定的局限性,但适用于小型|中型

This method have some limitations for big and complex upstream-projects, but works on small|mid-sizes

这篇关于SVN:只读存储库的分支?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆