删除不必要的 svn:mergeinfo 属性 [英] Remove unnecessary svn:mergeinfo properties

查看:49
本文介绍了删除不必要的 svn:mergeinfo 属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我合并存储库中的内容时,Subversion 想要添加/更改许多 svn:mergeinfo 属性到与我想要合并的内容完全无关的文件.

When I merge stuff in my repository Subversion wants to add/change a lot of svn:mergeinfo properties to files that are totally unrelated to the things that I want to merge.

之前已经在 Stack Overflow 上提出了有关此行为的问题:

Questions about this behaviour have been asked before here on Stack Overflow:

从我从上面提到的主题中了解到,我的存储库中的很多文件似乎都具有显式的 svn:mergeinfo 属性,而实际上它们不应该.建议是减少数量,只将这些属性放在相关文件/文件夹中.

From what I understand from the topics mentioned above it looks like a lot of files in my repository have explicit svn:mergeinfo properties on them, when they shouldn't. The advice is to reduce the amount and only put those properties on relevant files/folders.

那么现在我的问题是:如何轻松删除那些不需要的属性?我正在使用 TortoiseSVN,但我不愿意手动检查/修复数百个文件.有没有更简单的方法来删除那些不必要的 svn:mergeinfo 属性?

So now my question: how can I easily remove those unneeded properties? I'm using TortoiseSVN, but I am reluctant to manually check/fix hundreds of files. Is there an easier way to remove those unnecessary svn:mergeinfo properties?

附言我寻找 C++ SVN API 代码.

P.S. I'm not looking for C++ SVN API code.

推荐答案

这是另一种删除所有子树 svn:mergeinfo 属性但不在根文件夹中的方法(这是分支正常工作所必需的).

Here is another way to delete all sub tree svn:mergeinfo properties but not at the root folder (this is needed for branching to work properly).

从项目的根目录做:

svn propdel svn:mergeinfo -R
svn revert .
svn ci -m "Removed mergeinfo"

这篇关于删除不必要的 svn:mergeinfo 属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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