![](/img/trans.png)
[英]Cannot upload files from my local subversion directory into the subversion repository
[英]Override certain files from another Subversion repository
我正在尋找一種方法,讓一個Subversion倉庫基本上是另一個Subversion倉庫的副本,除了我想覆蓋的另一個倉庫中的一些文件。
基本上,我想實現以下目標:
/
- branches/
- mybranch/ = if files are added in /trunk, they get added here
- file1 = latest rev of /trunk/file1
- file2 = latest rev of /trunk/file2
- file3 = unique, versioned file that belongs to mybranch only
- dir1/ = if files are added in /trunk/dir1, they get added here
- file4 = latest rev of /trunk/dir1/file4
- file5 = unique, versioned file that belongs to mybranch only
- trunk/
- file1
- file2
- file3
- dir1/
- file4
- file5
(所有代碼都在同一個倉庫中,但這不相關)最終目標是,當有人簽出mybranch
,他們將獲得所有代碼( trunk
+ mybranch
包含的差異),而不僅僅是mybranch
特有的代碼。 最吸引人的解決方案是使用svn:externals
,但是它可以在目錄上工作嗎? (也就是說,如果將一個名為file6
的文件添加到主干,是否mybranch
自動將其添加到mybranch
?)
如果分支不是正確的方法,那會是什么? (我不是在問使用分支的正確方法,我是在問獲取我所描述的內容的正確方法,無論它是否涉及分支。)
沒有簡單的完全無人值守的方式來做您想要的事情。 這樣的“過濾器”聽起來很誘人。
與您的問題重復項最近的是: Subversion svn:externals文件覆蓋?
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.