简体   繁体   English

SVN 没有服务器的工作副本合并

[英]SVN Working copy merge without server

In Subversion, how can I merge between working copies, from trunk to branch, without communicating to the server (both are at their latest revision with no local changes).在 Subversion 中,我如何在不与服务器通信的情况下合并工作副本,从主干到分支(两者都是最新版本,没有本地更改)。

Merging in Subversion means that you want to merge the changes from revision xyz to revision xyz + i on the branch branch_abc to the current state of the trunk.在Subversion中合并是指要将分支branch_abc上从revision xyz到revision xyz + i的修改合并到trunk的当前state。 That means, that you are only able to do that, if you know the difference between xyz and xyz + i and that is only known to the server.这意味着,如果您知道xyzxyz + i之间的区别并且只有服务器知道,您才能这样做。

So, no, there is no way to do the merge only locally (without connection to the server).所以,不,没有办法只在本地进行合并(不连接到服务器)。

It does not look like you can, from svn-book:从 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. 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). 3. In the third form, SOURCE can be either a URL or a working copy path (in which case its corresponding URL is used).

The docs say even though you're referencing a copy on disk, it's still going to try to go the repository.文档说即使您引用磁盘上的副本,它仍然会尝试 go 存储库。

I tried merging like you suggested (the second form, from above), and it worked when connected, but when I disconnected:我尝试按照您的建议进行合并(上面的第二种形式),并且在连接时有效,但是当我断开连接时:

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)

I hope this helps,我希望这有帮助,

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM