`

SVN Retrieval of mergeinfo unsupported - Reposted

 
阅读更多

This is another descriptive error message from SVN. “Retrieval of mergeinfo unsupported”

If you’re seeing this error message you’re probably trying to use the reintegrate merger feature in SVN. You probably just used a command like this one:

 
1
svn merge --reintegrate svn://foobranch .

This error is caused by a configuration issue on your server, or a significant version mismatch between your client and server. It’s OK, though, this can be worked around pretty easily. Just fall back to the more reliable SVN 1.4 style explicit merger technique.

To use this approach you’ll need to know what revision you either created your branch from, or, if you’ve merged the trunk into your branch since creation, the revision you last merged into your branch. In this example, that revision is revision 42 (being the answer to the ultimate question)

 
1
svn merge svn://trunk@42 svn://foobranch .

Another option is to do an explicit revision to revision merger. This more low level syntax can be used for all sorts of crazy mergers including roll-backs and nonsensical mergers that will mess up your code. For this command you’ll need the revision from which you’d like to start your merger and the end revision. In this case I’ll be merging revisions 42 to 87. I’ll be merging these changes from the trunk to my current local path.

 
1
svn merge -r42:87 svn://trunk ./

 

 

Work around:

(You appear to be using svn 1.5 (since it introduced reintegrate). I
haven't gone into that in any depth because I'm only just making the
switch myself. I'm still using 1.4 + svnmerge.py.)

I don't think it much matters, as long as you understand what you're
doing. Here's the rub, as I see it:

(Think of the branch as a set of changes. The question is changes
relative to what?)

(1)

You've got changes on the trunk that are not on the branch. By merging
those changes to the branch you've brought your branch up to date with
trunk. The work represented by your branch is now exactly the
difference between the current state (HEAD) of you branch and the
current state (HEAD) of the trunk.

svn merge svn://repo/trunk svn://repo/branch working-copy-of-trunk-head

This means: compute the changes necessary to make svn://repo/trunk
identical to svn://repo/branch and apply exactly those changes to a
working copy svn://repo/trunk.

The safety of this operation depends critically on the fact that
you've previously merged all trunk changes since branch creation to
the branch.

This is the scenario that the merge --reintegrate option in 1.5 is
designed for. See also http://blog.red-bean.com/sussman/?p=92

(2)

You've not synced your branch with trunk. The work represented by the
branch is the set of changes between the creation of the branch and
its current state (HEAD). Those are the changes you want to apply to
a working copy of trunk.

To figure out the origin of your branch use

   svn log --stop-on-copy svn://repo/branch

The last entry listed should be the one where the branch was created
(by copying from trunk.) Let's call that revision 100

   svn merge -r100:HEAD svn://repo/branch working-copy-of-trunk

This means: gather all the changes that were made to the branch since
its creation (r100) and apply those changes to a working copy of the
trunk.

In either case, you'll want to inspect the results of the merge in
your working copy of trunk. Build and run unit tests if you've go
them. If it looks good, commit.

I would also recommend deleting the branch when you are done. You can
always create a new one from trunk if you need to continue work on
this feature.

分享到:
评论

相关推荐

    svn TortoiseSVN 1.14.5 (64-bit)

    svn TortoiseSVN 1.14.5 (64-bit) svn客户端svn TortoiseSVN 1.14.5 (64-bit) svn客户端svn TortoiseSVN 1.14.5 (64-bit) svn客户端svn TortoiseSVN 1.14.5 (64-bit) svn客户端svn TortoiseSVN 1.14.5 (64-bit) svn...

    mod_svn-1.7.10-ap24-x64.zip

    标题中的"mod_svn-1.7.10-ap24-x64.zip"表明这是一个与Subversion(SVN)相关的模块,版本为1.7.10,适配Apache服务器的版本为2.4(AP24),并且是针对64位操作系统的。Subversion是一个开源的版本控制系统,用于...

    TortoiseSVN-1.8.7.25475-x64-svn-1.8.9.msiTortoiseSVN-1.8.7.25475

    TortoiseSVN-1.8.7.25475-x64-svn-1.8.9.msiTortoiseSVN-1.8.7.25475-x64-svn-1.8.9.msiTortoiseSVN-1.8.7.25475-x64-svn-1.8.9.msiTortoiseSVN-1.8.7.25475-x64-svn-1.8.9.msiTortoiseSVN-1.8.7.25475-x64-svn-...

    maven-svn-revision-number-plugin-1.4.jar

    maven-svn-revision-number-plugin-1.4.jar

    maven-svn-revision-number-plugin-1.2.jar

    maven-svn-revision-number-plugin-1.2.jar

    SVN常用操作----查看代码提交以及改动记录方法

    **SVN常用操作——查看代码提交及改动记录方法** 在软件开发过程中,版本控制系统如Subversion(SVN)是团队协作的重要工具。它允许开发者跟踪和管理代码的修改历史,以便于协同工作、回溯错误并理解代码的发展过程...

    maven-svn-revision-number-plugin-1.7-sources.jar

    maven-svn-revision-number-plugin-1.7-sources.jar

    SVN-x64-svn-2017-10-31 104600_Hcs.zip

    【标题】"SVN-x64-svn-2017-10-31 104600_Hcs.zip"所指的是一个64位版本的Subversion(SVN)软件的压缩包,发布于2017年10月31日,版本号为104600,由Hcs提供。这个压缩包中包含了一个名为"SVN-x64-svn-2017-10-31 ...

    Eclipse的SVN插件site-1.10.13-1.9.x.zip

    Eclipse的SVN插件site-1.10.13-1.9.x.zip,将解压后的子文件夹features和plugins的jar包文件分别导入Eclipse安装目录下的features和plugins文件夹内,然后重启Eclipse即可,或者在Eclipse中通过Help-->...

    svn-eclipse-site-1.6.10.zip

    标题 "svn-eclipse-site-1.6.10.zip" 提供的信息暗示这是一款与Subversion(SVN)集成的Eclipse插件的更新站点压缩包。Subversion是一种广泛使用的版本控制系统,而Eclipse是一种流行的开源集成开发环境(IDE)。这...

    svn软件 SVN服务端 SVN客户端1.8.10 SVN插件 SVN插件site-1.10.9

    SVN服务端SVN-Server-3.3.1-x64,SVN客户端TortoiseSVN-1.8.10-x64,SVN插件site-1.10.9,SVN客户端pdf使用说明文档. SVN客户端和eclipse SVN插件这两个版本匹配,可以实现对同一项目同时使用subeclipse和Tortoise ...

    (AnkhSvn)Ankh-VSIX-2022 支持VS2022

    《AnkhSVN:在Visual Studio 2022中的Subversion支持》 AnkhSVN是一款集成在Visual Studio环境中的Subversion(SVN)客户端工具,它为开发者提供了便捷的版本控制功能,使得在Visual Studio 2022中进行代码管理变得...

    svn-1.4.6-setup.rar_svn_svn-1.3.2-setup.exe_svn-1.4.6_svn-1.4.6-

    压缩包中的"svn-1.4.6-setup.exe"是用于在Windows系统上安装SVN服务器的执行文件。通过运行这个安装程序,用户可以轻松地在本地计算机上设置一个SVN服务器,从而实现对项目代码库的托管。安装过程中,用户需要配置...

    svn工具64(TortoiseSVN-1.8.4.24972-1.8.5 Slik-Subversion-1.8.5)

    svn客户端工具(小乌龟) TortoiseSVN-1.8.4.24972-x64-svn-1.8.5.msi 命令行工具 Slik-Subversion-1.8.5-x64.msi 环境变量配置 有问题的童鞋可以留言,大家共同学习!

    SVN-Server-4.1.3-x64.rar

    "SVN-Server-4.1.3-x64.rar" 是一个针对64位操作系统的SVN服务端程序的压缩包,包含版本号4.1.3的服务器安装文件。 **SVN服务端详解:** SVN服务端是SVN系统的核心部分,它负责存储和管理所有版本化的项目文件。这...

    SVN插件svn_site-1.6.5.zip

    SVN(Subversion)是一种广泛使用的版本控制系统,用于管理和跟踪文件和目录的变更。Subclipse是专门为Eclipse集成开发环境(IDE)设计的一个插件,它使得开发者能够在Eclipse中直接利用Subversion的功能,实现代码...

    openlogic-ankhsvn-2.1.10019-windows-src-1

    openlogic-ankhsvn-2.1.10019-windows-src-1 openlogic-ankhsvn-2.1.10019-windows-src-1 openlogic-ankhsvn-2.1.10019-windows-src-1

    svn 插件 site-1.10.13-1.9.x CSDN 下载

    eclipse 下使用 svn 插件 site-1.10.13-1.9.x CSDN 下载! eclipse 下使用 svn 插件 site-1.10.13-1.9.x CSDN 下载! eclipse 下使用 svn 插件 site-1.10.13-1.9.x CSDN 下载!

    svn-1.3.2-setup-for-windows-setup.exe

    Windows下的SVN 1.3.2版本的安装包

    git-svn-1.8.3.1-23.el7_8.x86_64.rpm

    官方离线安装包,测试可用。使用rpm -ivh [rpm完整包名] 进行安装

Global site tag (gtag.js) - Google Analytics