SVN 合并 : "Target path does not exist"

标签 svn merge

对于我之前做过一百次的事情,我正在拔头发。我有一个子项目“a”的候选发布分支,我们在其中做了一些最后的更改。现在我们已经释放了,我需要将它们带回后备箱。

我 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: 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 ,但会因尝试重新插入现有文件而发生冲突而失败。

最佳答案

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

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

哪里XXX是我从主干复制/合并到分支的最后一个修订号。

关于SVN 合并 : "Target path does not exist",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5764584/

相关文章:

git - 如何在循环中运行 svn update 以将提交导入到 git?

git - GIT merge 后我还有旧分支

git - 如何将 Git 存储库组合成线性历史记录?

r - 如何按 tibble 行合并 tibble

linux - svn subversion server list only repository(需要很多时间)

svn - 有没有可以可视化显示SVN存储库的工具(即漂亮的图表)?

mysql - 如何合并两个具有相同结构的mysql表

java - Nullable Date 列合并问题

svn - 哪个用户应该在 Jenkins 构建作业中从 SVN checkout 代码?

svn - 在 svn 中保存构建快照的位置