颠覆差异包括新文件 [英] subversion diff including new files

查看:55
本文介绍了颠覆差异包括新文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对一个使用 Subversion 作为其源代码控制的开源项目进行了一些本地更改.(我没有对原始项目存储库的提交访问权限.)

I have some local changes to an open source project which uses Subversion as its source control. (I do not have commit access on the original project repository.)

我的更改添加了一个文件,但此文件未包含在svn diff"的输出中.(可能值得注意的是,新文件是二进制文件,而不是纯文本.)

My change adds a file, but this file is not included in the output of "svn diff". (It may be worth noting that the new file is a binary, not plain text.)

如何制作包含新文件的补丁?><小时>

How can I make a patch which includes the new files?

 $ svn st
   A      tests/foo.zip
 $ svn diff
 $

推荐答案

恐怕您的文件是二进制文件这一事实正是它不显示的原因.Subversion 的 diff 命令只处理文本差异/补丁(即使 Subversion 内部可以有效地处理版本之间的二进制文件差异).

The fact that your file is binary is exactly why it is not displayed I'm afraid. Subversion's diff command only does textual diffs/patches (even though Subversion internally can handle binary file differences efficiently between versions).

这篇关于颠覆差异包括新文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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