SVN diff 不是这样吗?

发布于 2024-11-27 07:23:40 字数 209 浏览 0 评论 0原文

我已经从存储库下载了代码,考虑名为 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

余生一个溪 2024-12-04 07:23:40

该命令只是向您显示这两个项目与其基本修订版有何不同。既然你刚刚检查过,自然没有任何区别。

要了解这两个项目的不同之处,请使用

  diff -r code-5.2.1 code-5.2.2

文件系统 diff,而不是 svn diff 子命令。

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

  diff -r code-5.2.1 code-5.2.2

i.e. the filesystem diff, not the svn diff subcommand.

梓梦 2024-12-04 07:23:40

您想获取您在代码中所做的本地更改的差异吗?在这种情况下,只需转到该目录即可。我假设它是代码5.2.1。
然后,只需cd code-5.2.1,然后svn diff

如果需要,您也可以比较两个文件夹。这不是为了通过版本控制系统(svn)检查更改记录。
在这种情况下,输入:

diff -ruN code-5.2.1 code-5.2.2

-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 then svn 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:

diff -ruN code-5.2.1 code-5.2.2

-u -- Unified diff, which is probably what you need.

from man page,
-r -- Recursively compare any subdirectories found.
-N -- Treat absent files as empty.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文