在使用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 here and here.
  • the protocol is different from what you used for the checkout. E.g. http://svn.example.com versushttps://svn.example.com 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 mergehttps://mysite.com/svn/MYREPO/trunk as merge from . But my branch name has small letters for myrepo https://mysite.com/svn/myrepo/branches/mybranch. 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 也是不行的

希望对大家有用

SVN Error: “' 'x' isn't in the same repository as 'y' ” during merge (并不在同一个版本库中)...相关推荐

  1. 「SVN」Ubuntu 版本库搭建+使用 完整教程

    序 重新写一篇,发现svn有了中文版教程,一下兴致就上头.正好新项目要搭建svn环境,开一篇复习复习.发誓一定写完整! 真正开始搭建才发现上面链接里的教程并没什么用,因为需要搭建版本库使用的系统是ub ...

  2. svn版本库浏览器_在SVN版本库浏览器中直接编辑文件保存后不会弹..._网络编辑_帮考网...

    原因是没有实际添加到版本库中,要添加到版本库必须执行"Commit". 具体分析如下: SVN错误处理svn : Couldn't perform atomic initializ ...

  3. svn merger的时候 报远程主机强迫_SVN与Git比较(二)版本库与工作区

    二. 版本库与工作区 Subversion的工作区和版本库是截然分开的,而Git的工作区和版本库是如影随形的. 1. SVN的版本库和工作区是分离的 • Subversion 的工作区和版本库物理上分 ...

  4. svn服务器现存的库文件导入,svn导入版本库及相关知识

    SVN作为新一代代码版本管理工具,有很多优点,管理方便,逻辑明确,安全性高,代码一致性高.SVN数据存储有两种方式,BDB(事务安全表类型)和FSFS(一种不需要数据库的存储系统),为了避免在服务器连 ...

  5. svn服务端删除版本库_svn历史版本删除(为svn库瘦身)

    当svn库庞大到一定程度的时候,无论是在查询还是在备份方面肯定会给我们带来很多不便,以下将先容为svn库瘦身的办法, 简单的说,就是新建一个库,然后把旧库我们所需要查询的一个版本范围的资料搬移过去,具 ...

  6. svn服务端删除版本库_删除SVN目录及从服务器端删除SVN版本库文件方法详解

    删除SVN目录 当使用了svn版本控制系统后每个目录下都会有一个.svn目录存在,开发完当交付产品或者上传到服务器时一般要把这些目录删除,这里总结了一下在linux和win下的办法. 一.在linux ...

  7. 导入SVN版本库,提示svnadmin: E000002: Can't open file

    其他项目的版本库需要合并到旧的版本库中, 输入 svnadmin load /opt/oldsvndb --parent-dir /Trunk/SourceCode/other < other. ...

  8. 项目从服务器移除,删除SVN目录及从服务器端删除SVN版本库文件方法详解

    删除SVN目录 当使用了svn版本控制系统后每个目录下都会有一个.svn目录存在,开发完当交付产品或者上传到服务器时一般要把这些目录删除,这里总结了一下在linux和win下的办法. 一.在linux ...

  9. svn服务端删除版本库_如何彻底删除SVN中的文件和文件夹(附恢复方法)

    这里假设SVN项目的目录为 /data/svn/project,我们想排除trunk/test.exe文件和trunk/notallowed/目录,操作步骤如下及执行的svn命令(在svn安装目录的b ...

最新文章

  1. 汇编:转移目的地址在内存中
  2. 从尾到头打印链表---剑指Offer
  3. 十一、深入JavaScript的定时器(七)
  4. Java中如何引用文档对象模型_在JAVA中使用文档对象模型DOM经验小结
  5. 33 -jQuery 属性操作,文档操作(未完成)
  6. 2015/04/01     RHCS
  7. Android odex文件反编译
  8. python检验文件命名_Python如何检查文件名是否为UTF8?
  9. python处理地震sac数据_Fortran批量读取SAC地震数据文件,写SAC文件,并转换成SEGY...
  10. 【log4cpp_学习】2_log4cpp配置文件的使用
  11. 刷ROM必備的clockworkmod recovery
  12. html广告清理,谷歌浏览器插件-清除CSDN广告
  13. u盘写保护+计算机管理,U盘写保护的解决方法
  14. latex中页眉怎么去掉_LaTeX页面布局专题——页眉和页脚
  15. 求原谅---好久没更新了
  16. 如何在MS Access中创建用户权限和自定义菜单
  17. 程序员真的是吃青春饭的吗?有哪些建议可以给刚入职的程序员?(全是干货)...
  18. EXCEL-如何把多个格式相同的表格批量做成图表
  19. openssl 开发库下载集合
  20. 专题 | 项目管理知识、方法论、工具NO.9:你应该知道的项目管理的五个过程组和九大知识领域

热门文章

  1. 不只有BERT!盘点2018年NLP令人激动的10大想法
  2. 本地项目文件夹同步到GitLab的操作步骤
  3. TypeScript 素描 - 接口
  4. Redis基础笔记 (二)
  5. 查看cics 运行状态
  6. DNS域名系统(二)
  7. Firefox附加在合谋表演,谁跟踪你上网
  8. log file switch
  9. 彻底分析ARP病毒查杀防范全攻略
  10. C#文件和目录的操作