SVN diff 不是这样吗?
我已经从存储库下载了代码,考虑名为 code-5.2.1 和 code-5.2.2 的代码。两个代码的修订号相同。我无法执行 svn diff 。一旦我运行 cmd :
svn diff code-5.2.1 code-5.2.2
光标等待一段时间并返回到
我尝试使用修订号的相同位置,但没有解决,因为两者的修订号相同
I have downloaded code from repository consider the code named as code-5.2.1 and code-5.2.2. revision number is same for both codes. I am not able to do svn diff .once i am running cmd :
svn diff code-5.2.1 code-5.2.2
cursor waits some time and comes back to same position
i tried using revision number but didn't work out as its same revision no for both
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
该命令只是向您显示这两个项目与其基本修订版有何不同。既然你刚刚检查过,自然没有任何区别。
要了解这两个项目的不同之处,请使用
文件系统
diff
,而不是 svndiff
子命令。That command just shows you how each of the two projects differs from its base revision. Since you just checked them out, naturally there are no differences whatsoever.
To find out how the two projects differ from each other, use
i.e. the filesystem
diff
, not the svndiff
subcommand.您想获取您在代码中所做的本地更改的差异吗?在这种情况下,只需转到该目录即可。我假设它是代码5.2.1。
然后,只需
cd code-5.2.1
,然后svn diff
。如果需要,您也可以比较两个文件夹。这不是为了通过版本控制系统(svn)检查更改记录。
在这种情况下,输入:
-u -- Unified diff,这可能就是您所需要的。
来自手册页,
-r -- 递归比较找到的任何子目录。
-N -- 将不存在的文件视为空文件。
Do you want to get the diff for the local changes you have made in the code? In that case, simply go to that directory. I assume it's code-5.2.1.
Then, simply
cd code-5.2.1
and thensvn diff
.You can compare two folders if you want as well. This is not for checking the changes record by version control system (svn).
In that case, enter:
-u -- Unified diff, which is probably what you need.
from man page,
-r -- Recursively compare any subdirectories found.
-N -- Treat absent files as empty.