svn merge:“目标路径不存在" [英] svn merge: "Target path does not exist"

查看:592
本文介绍了svn merge:“目标路径不存在"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

For something I've done a hundred times before, I'm pulling my hair out. I have a release candidate branch for sub-project 'a' where we made some last minute changes. Now we've released, I need to bring those back into the trunk.

我将其CD到主干工作副本,然后运行:

I cd to my trunk working copy, and then run:

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

啊...?分支和主干副本都绝对存在.实际上,它们几乎是相同的.可能缺少什么?

Wha...? The both the branch and the trunk copy most definitely exist. In fact, they are near identical. What could be missing?

这里还有一些上下文:

$ 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

我还尝试按照建议

I also tried to use --ignore-ancestry as recommended here, but fail with conflicts attempting to reinsert the existing files.

推荐答案

如果我限制发行版号,则合并有效:

The merge worked if I constrained my release numbers:

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

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

where XXX was the last revision number where I copied/merged from trunk to the branch.

这篇关于svn merge:“目标路径不存在"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆