2012-04-05 45 views
0

在Subversion中,如何在不與服務器通信的情況下(從主幹到分支)在工作副本之間進行合併(兩者都在最新版本中,沒有本地更改)。SVN沒有服務器的工作副本合併

+1

你只是希望他們變成一樣嗎?它並沒有真正合並兩個工作副本。差異的參考點是什麼? – 2012-04-05 05:24:52

回答

2

在Subversion中進行合併意味着您想要將分支branch_abc上修訂號xyz到版本xyz + i的更改合併到中繼線的當前狀態。這意味着,如果您知道xyzxyz + i之間的區別並且只有服務器已知,那麼您只能這樣做。

所以,不,沒有辦法只在本地進行合併(沒有連接到服務器)。

0

它看起來並不像您可以從SVN書:

2. merge [email protected] [email protected] [WCPATH]

3. merge [-c M[,N...] | -r N:M ...] SOURCE[@REV] [WCPATH]

2. In the second form, the URLs corresponding to the source working copy paths define the sources to be compared. The revisions must be specified.

3. In the third form, SOURCE can be either a URL or a working copy path (in which case its corresponding URL is used).

即使您在磁盤上引用副本,文檔也會說,它仍然會嘗試訪問存儲庫。

我試圖合併喜歡你的建議(第二種形式,從以上),並連接時,它的工作,但是當我斷開:

dev_6 zyoung$ svn merge --reintegrate ../[email protected] 
svn: OPTIONS of 'http://foo.unfuddle.com/svn/foo_personal/dev': Could not resolve hostname `foo.unfuddle.com': Host not found (http://foo.unfuddle.com) 

我希望這有助於