2011-04-23 127 views
3

對於我以前做過幾百次的事情,我正在拉我的頭髮。我有一個子項目'a'的發佈候選分支,我們在那裏做了一些最後時刻的更改。現在我們已經發布了,我需要將它們放回主幹中。svn merge:「目標路徑不存在」

我cd到我的樹幹工作拷貝,然後運行:

$ svn merge https://svn.server.com/svn/branches/a/release 
svn: Target path '/branches/a/release' does not exist 

啊......?分支和中繼副本都絕對存在。事實上,它們幾乎完全相同。有什麼可能會丟失?

下面是一些更多的上下文:

$ pwd 
~/working-copy/trunk/a 
$ svn info 
Path: . 
URL: https://svn.server.com/svn/trunk/a 
Repository Root: https://svn.server.com/svn 
Repository UUID: 32d33e3d-8f82-497d-945e-c2c79703d92c 
Revision: 5570 
Node Kind: directory 
Schedule: normal 
Last Changed Author: [email protected] 
Last Changed Rev: 5560 
Last Changed Date: 2011-04-22 17:41:34 -0700 (Fri, 22 Apr 2011) 
$ svn info https://svn.server.com/svn/branches/a/release 
Path: release 
URL: https://svn.server.com/svn/branches/a/release 
Repository Root: https://svn.server.com/svn 
Repository UUID: 32d33e3d-8f82-497d-945e-c2c79703d92c 
Revision: 5570 
Node Kind: directory 
Last Changed Author: [email protected] 
Last Changed Rev: 5542 
Last Changed Date: 2011-04-22 12:00:49 -0700 (Fri, 22 Apr 2011) 


$ svn merge https://svn.server.com/svn/branches/a/release 
svn: Target path '/branches/a/release' does not exist 
$ svn ls https://svn.server.com/svn/branches/a/release 
.svnignore 
build/ 
build.xml 
change_log.txt 
docs/ 
libs/ 
release_procedure.txt 
src/ 
$ svn merge https://svn.server.com/svn/branches/a/release . 
svn: Target path '/branches/a/release' does not exist 
$ cd .. 
$ svn merge https://svn.server.com/svn/branches/a/release a 
svn: Target path '/branches/a/release' does not exist 
$ svn --verbose https://svn.server.com/svn/branches/a/release a 
Subcommand 'merge' doesn't accept option '-v [--verbose]' 
Type 'svn help merge' for usage. 

$ svn --version 
svn, version 1.6.15 (r1038135) 
    compiled Feb 26 2011, 21:56:07 

Copyright (C) 2000-2009 CollabNet. 
Subversion is open source software, see http://subversion.apache.org/ 
This product includes software developed by CollabNet (http://www.Collab.Net/). 

The following repository access (RA) modules are available: 

* ra_neon : Module for accessing a repository via WebDAV protocol using Neon. 
    - handles 'http' scheme 
    - handles 'https' scheme 
* ra_svn : Module for accessing a repository using the svn network protocol. 
    - with Cyrus SASL authentication 
    - handles 'svn' scheme 
* ra_local : Module for accessing a repository on local disk. 
    - handles 'file' scheme 

我還試圖用--ignore-ancestry推薦here,但未能與衝突試圖重新插入現有的文件。

回答

5

合併工作,如果我約束我的版本號:從主幹

$ svn merge -r XXX:HEAD https://svn.server.com/svn/branches/a/release 

其中XXX是在那裏我複製了最後一個版本號/合併到分支。