SVN DIFF命令是否有元数据排除过滤器? [英] Is there a metadata exclusion filter for the SVN DIFF command?
问题描述
我使用SVN作为源代码控制系统,我想知道如何在不忽略任何元数据差异的情况下比较目录.有没有办法告诉svn diff
仅比较实际内容而忽略任何元数据?
I use SVN as the source control system, and I wonder how to compare directories while ignoring any metadata differences. Is there a way to tell svn diff
to compare only the actual content and ignore any metadata?
我的意思是不影响文件内容的元数据,例如SVN属性等.假设文件X与主干T相比在分支B中具有其他属性.不幸的是,即使文件X的实际内容相同,它也将显示在"svn diff T B"中.
I mean metadata like SVN properties, etc. that don't affect the file content. Assume file X has an additional property in branch B compared to trunk T. Unfortunately it will show up in 'svn diff T B' even though the actual content of file X is the same.
我正在寻找这样的东西:
I look for something like this:
svn diff https://example.org/tags/v1 https://example.org/tags/v2 -x -ignore-metadata --summarize
更新:我通过直接在文件系统上进行差异而不是使用SVN工具来部分解决了此问题.在下面查看我自己的答案...
Update: I partially solved this by diff'ing directly on the filesystem instead of using the SVN tools. See my own answer below...
推荐答案
似乎没有办法使用svn内置工具来完成此任务.我如何解决的: 导出两个树,然后使用您喜欢的diff工具在文件系统上直接对它们进行差异化处理.那是完成此任务的唯一方法:/
There seems to be no way to get this done using the svn built-in tools. How I solved it: Export both trees and diff them diretly on the filesystem using your favourite diff tool. That's somehow the only way to get this done :/
这篇关于SVN DIFF命令是否有元数据排除过滤器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!