博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
SVN Error: “' 'x' isn't in the same repository as 'y' ” during merge (并不在同一个版本库中)...
阅读量:7122 次
发布时间:2019-06-28

本文共 1937 字,大约阅读时间需要 6 分钟。

在使用svn merge命令报错

英文版本:SVN Error: “' 'x' isn't in the same repository as 'y' ” during merge

中文版本报错:并不在同一个版本库中

如果你使用的是中文版本,那你就悲剧了,跟我一样,Google、百度都搜不到答案

 

不过现在不用担心,我费劲九牛二虎之力找到答案了,非常恶心的一个小问题:

 

 

Questions:

I get the error

svn: 'x' isn't in the same repository as 'y' "

during merge. What's the problem and how can I fix it ?

(I actually know the answer and posting it as soon as I am allowed by the system, so that it's googleable by others. I got my share of trouble finding the answer).

Answer:

The problem lies in the fact the checkout information is different from what you specify in the svn merge command. Typically, it can be either:

  • the hostname is different when you did the checkout. You did the checkout as from svn.example.com but now you are merging by referring to an host alias, like svn-alias.example.com. note that even the case is important. You can get this error if you do svn merge from SVN.EXAMPLE.COM. More on this  and .
  • the protocol is different from what you used for the checkout. E.g.  versus Make sure you use the same protocol.
  • you are specifying a username at svn merge in the form user@svn.example.com. Try to remove the user@ specification (the user is passed anyway). svn considers the hostname, and thus the repo, different if you specify the user, even if the user is technically the same.

this is very much case sensitive. Sometimes if you right click in any branch and click merge as merge from . But my branch name has small letters for myrepo . this cause me error surely check the case sensitivenes.. If its not matching type in the wizard correctly

The merge is case sensitive. Ensure when you do the initial checkout ensure that the name and case are the same. For example, if you checkout to "http:///ABC" ensure you enter "http:///ABC", not "http:///abc" in the "URL to merge from".

 

解释一下:

两个svn merge 非常敏感,两个svn代码地址的域名必须完全一致

https://aaa.com

http://aaa.com

这样的也是不行的

http:///ABC 和 http:///abc 也是不行的

希望对大家有用

转载地址:http://aaxel.baihongyu.com/

你可能感兴趣的文章
基于分布式、服务化的maven项目文件规划
查看>>
lync 2013 企业版部署 (三) 安装前端服务器
查看>>
MYSQL参数调优之见解分析,mysql主从(读写)分离来实现负载均衡
查看>>
刷blos
查看>>
centos升级新内核所遇问题。
查看>>
win7 下安装 iis7.5+php5.3的配置方法(图文)
查看>>
SQL语句学习之路10
查看>>
[用事实说明两个凡是]一个mysql莫名锁表的问题
查看>>
ubuntu设置静态IP
查看>>
hql select from与from 的区别
查看>>
wxPython之Socket客户端
查看>>
linux系统目录结构详解(简单易懂)
查看>>
学习《Effective C++》
查看>>
CS224n笔记9 机器翻译和高级LSTM及GRU
查看>>
KVM虚拟机
查看>>
GdiPlus[57]: 图像(九) IGPBitmap 特有的属性与方法
查看>>
Windows 多媒体函数(winmm.dll 中的函数)汇总
查看>>
关于 Delphi 中流的使用(4) 遍历读取流中的所有数据
查看>>
使用 IntraWeb (4) - 页面布局之 TIWRegion
查看>>
域控的升级及客户端加入域
查看>>