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

查看:613
本文介绍了删除不必要的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.

有关此行为的问题已在此处的堆栈溢出问题中问过:

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?

P.S.我正在寻找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天全站免登陆