Using two different SVN repositories for the same project

statuz

As a consultant I usually have access to client's svn repository in order to checkout, work on and eventually commit projects.

The optimal (is a client request) would be to commit only stable versions on client's svn and avoid intermediate (i.e. non buildable) commits but I also would like to keep trace of developing process and enjoy the benefit of a versioning system...

Then it would be great to do something like:

  • checkout PROJ from client's svn
  • use an internal svn for developing
  • commit stable version on client's svn

我能够使用某些脚本(可以自动执行检出,删除.svn内容,提交等操作)来完成此任务,但这实际上离平滑的过程还很遥远。

我尝试寻找解决方案,但没有找到任何有用的方法。

有谁知道一种简单而有效的方法来做到这一点?

先感谢您。

懒Bad

最好和最简单的解决方案是在您的身边使用另一个SCM +桥接到SVN(Mercurial + HGSubversion,而不是Git

但是即使使用纯SVN,您也至少有两个可行的解决方案:供应商分支和共享UUID

供应商分支

  • 阅读SVN手册中的“供应商分支”主题(主要是“国外存储库”中的“供应商分支”)和相关的“外部定义”一章
  • 建立的链接根据客户的仓库存储库“卖主分支”的建议
  • 在存储库的私有部分中执行日常工作
  • 将经过精加工和完成的工作合并到供应商分支中,并将结果(一个大合并集)提交到客户的存储库中(您必须在客户端具有RW权限)
  • (不时地)将其他人从客户存储库中提交的内容合并到您存储库中的私有分支中

共享的UUID

您可以通过干净合法的方式(svn help relocate更改(对于现有WCN)相关SVN存储库的URL,该URL主要用于基础结构管理,但是可以为您使用。

假设要重定位的FROM和TO存储库是同一存储库,通过检查存储库的UUID来验证身份,因此:对于两个不同的存储库(客户端和您的),您必须提供相同的UUID。

可以通过将周期(svnadmin dump客户端的回购/或仅需要的节点//svnadmin load ... --force-uuid放入您的空存储库)轻松实现,然后您可以在存储库中执行任何工作。如果您执行以下操作,则“准备发布”工作将出现在客户的存储库中:

  • 将您的WC移至客户的存储库
  • 更新(半自动-您无法避免,并且在没有您干预的情况下,无冲突的合并将出现在您的WC中),并且客户端丢失了更改
  • 将您的(可能是长期的)WC更改(可能是“修改的”,与客户的回购相反)提交为一次巨大的提交
  • 将WC重新定位到您的存储库

PS:“销售商分支”是从我的POV出发更安全的方式,但代价是Subversion的合并可能会出现问题(仍然不如DVCS世界那么漂亮

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章

来自分类Dev

How to run multiple different items in the same project?

来自分类Dev

Different behavior on click of two buttons on same page in Struts 2

来自分类Dev

python - networkx - graph different colored nodes using two lists

来自分类Dev

Get result from two different tables using mysql

来自分类Dev

svn中的Visual Studio Project依赖项

来自分类Dev

UVM testbench - What is the "UVM" way to connect two different drivers to same interface?

来自分类Dev

Access denied to the path for remote drive which is used to store repositories for the Visual SVN server

来自分类Dev

SVN: Copied version different from original? :(

来自分类Dev

Converting between 2 different libraries using the same COM interface in C#

来自分类Dev

SVN选项在Project Explorer中不可见

来自分类Dev

Different Composer packages with same namespace

来自分类Dev

How to get all the changed files in between two revisions in SVN?

来自分类Dev

Two inner joins with same tables

来自分类Dev

Two Operations with the same name in the Service

来自分类Dev

Two predicates for same property in iOS

来自分类Dev

Comparing files in two different directories

来自分类Dev

Two different Julia projects and their toml

来自分类Dev

Adding API controller in same project as MVC controllers

来自分类Dev

How to use MvvmLight SimpleIoc in different project

来自分类Dev

displaying different text with same id tag jquery

来自分类Dev

WebAPI controller same action different parameters

来自分类Dev

Different ways of using a variable across different subroutines

来自分类Dev

Using Matlab capabilities in xcode project

来自分类Dev

Two printfs print the same string differently

来自分类Dev

two ajax functions at the same time? not working

来自分类Dev

Two ui-view in the same page AngularJs

来自分类Dev

Comparing two delegate objects are same instance

来自分类Dev

Two clickable item in same row of listview

来自分类Dev

merging two left join on same table into one

Related 相关文章

  1. 1

    How to run multiple different items in the same project?

  2. 2

    Different behavior on click of two buttons on same page in Struts 2

  3. 3

    python - networkx - graph different colored nodes using two lists

  4. 4

    Get result from two different tables using mysql

  5. 5

    svn中的Visual Studio Project依赖项

  6. 6

    UVM testbench - What is the "UVM" way to connect two different drivers to same interface?

  7. 7

    Access denied to the path for remote drive which is used to store repositories for the Visual SVN server

  8. 8

    SVN: Copied version different from original? :(

  9. 9

    Converting between 2 different libraries using the same COM interface in C#

  10. 10

    SVN选项在Project Explorer中不可见

  11. 11

    Different Composer packages with same namespace

  12. 12

    How to get all the changed files in between two revisions in SVN?

  13. 13

    Two inner joins with same tables

  14. 14

    Two Operations with the same name in the Service

  15. 15

    Two predicates for same property in iOS

  16. 16

    Comparing files in two different directories

  17. 17

    Two different Julia projects and their toml

  18. 18

    Adding API controller in same project as MVC controllers

  19. 19

    How to use MvvmLight SimpleIoc in different project

  20. 20

    displaying different text with same id tag jquery

  21. 21

    WebAPI controller same action different parameters

  22. 22

    Different ways of using a variable across different subroutines

  23. 23

    Using Matlab capabilities in xcode project

  24. 24

    Two printfs print the same string differently

  25. 25

    two ajax functions at the same time? not working

  26. 26

    Two ui-view in the same page AngularJs

  27. 27

    Comparing two delegate objects are same instance

  28. 28

    Two clickable item in same row of listview

  29. 29

    merging two left join on same table into one

热门标签

归档