SVN DIFF 命令是否有元数据排除过滤器? [英] Is there a metadata exclusion filter for the SVN DIFF command?

查看:28
本文介绍了SVN DIFF 命令是否有元数据排除过滤器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用 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 属性等不影响文件内容的元数据.假设与主干 T 相比,文件 X 在分支 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.

我在寻找这样的东西:

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 内置工具似乎无法完成此任务.我是如何解决的:导出两个树并使用您最喜欢的差异工具在文件系统上直接比较它们.这是完成这项工作的唯一方法:/

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屋!

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