簡體   English   中英

SVN 沒有服務器的工作副本合並

[英]SVN Working copy merge without server

在 Subversion 中,我如何在不與服務器通信的情況下合並工作副本,從主干到分支(兩者都是最新版本,沒有本地更改)。

在Subversion中合並是指要將分支branch_abc上從revision xyz到revision xyz + i的修改合並到trunk的當前state。 這意味着,如果您知道xyzxyz + i之間的區別並且只有服務器知道,您才能這樣做。

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

從 svn-book 看來你做不到:

2. merge sourceWCPATH1@N sourceWCPATH2@M [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. 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).

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

我嘗試按照您的建議進行合並(上面的第二種形式),並且在連接時有效,但是當我斷開連接時:

dev_6 zyoung$ svn merge --reintegrate ../dev@11
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)

我希望這有幫助,

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM