首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >svn merge:“目标路径不存在”

svn merge:“目标路径不存在”
EN

Stack Overflow用户
提问于 2011-04-23 21:59:47
回答 1查看 4.3K关注 0票数 4

对于我以前做过上百次的事情,我要拔出我的头发。我有一个子项目'a‘的发布候选分支,我们在最后时刻做了一些修改。现在我们已经释放了,我需要把它们带回后备箱。

我cd到我的主干工作副本,然后运行:

代码语言:javascript
复制
$ svn merge https://svn.server.com/svn/branches/a/release
svn: Target path '/branches/a/release' does not exist

什么……?分支和主干副本几乎都是肯定存在的。事实上,它们几乎是相同的。可能会遗漏什么?

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

代码语言:javascript
复制
$ 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: me@mycompany.com
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: me@checkpoints.com
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,但尝试重新插入现有文件时发生冲突而失败。

EN

回答 1

Stack Overflow用户

发布于 2011-04-25 00:13:01

如果我限制了我的版本号,合并就会起作用:

代码语言:javascript
复制
$ svn merge -r XXX:HEAD https://svn.server.com/svn/branches/a/release

其中XXX是我从主干复制/合并到分支的最后修订版号。

票数 5
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/5764584

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档