在 svn 中查看我的变更日志

发布于 2024-12-20 18:26:29 字数 845 浏览 4 评论 0原文

我在我的机器上本地使用 subversion。我已对存储库进行了一些更改。当我打印 svn status 时,我得到

?       binCharged
!       mem.xyz
?       binSge/.nfs00000000002c8aeb00000060
?       binSge/test.dat
?       binSge/propFile.dat
?       binSge/FTout.dat
?       binSge/mem
!       binSge/binSge/FTdev.dat
!       binSge/binSge/L.dat
!       binSge/binSge/Ltest.dat
!       binSge/binSge/prevProp.dat
!       binSge/binSge/mem.xyz
!       binSge/binSge/propFile.dat
!       binSge/binSge/FTout.dat
!       binSge/binSge/parOut.txt
!       binSge/binSge/file.txt
!       binSge/binSge/mem

Whis ok,因为 binSge 没有添加到存储库中,并且它仅用于测试。当我打印 svn diff 时,我得到一个空行 这里 我明白我应该得到一些有用的输出。

那么我如何阅读我的变更日志并查看文件之间的差异?

我在命令行中使用科学linux。

I'm using subversion locally on my machine. I have committed some changes to the repository. When I print svn status I get

?       binCharged
!       mem.xyz
?       binSge/.nfs00000000002c8aeb00000060
?       binSge/test.dat
?       binSge/propFile.dat
?       binSge/FTout.dat
?       binSge/mem
!       binSge/binSge/FTdev.dat
!       binSge/binSge/L.dat
!       binSge/binSge/Ltest.dat
!       binSge/binSge/prevProp.dat
!       binSge/binSge/mem.xyz
!       binSge/binSge/propFile.dat
!       binSge/binSge/FTout.dat
!       binSge/binSge/parOut.txt
!       binSge/binSge/file.txt
!       binSge/binSge/mem

Whis ok since binSge was not added to the repositories and it is used only for testing. When I print svn diff I get a blank line while here I understood that I am supposed to get some usefull output.

So how do I read my changelog and view the difference between the files?

I'm using scientific linux in commandline.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

琴流音 2024-12-27 18:26:29

如果您已经提交了更改,svn diff 确实会给您一个空白输出。

如果您知道提交的修订号,您可以获得更改日志
使用以下命令:

svn log -r 1234 -v

其中,1234 是您的提交号。

删除 -r 选项将为您提供整个日志:

svn log -v | less

If you have already committed your changes, svn diff will give you a blank output indeed.

If you know the revision number of your commit, you can get a change log
with the following command:

svn log -r 1234 -v

where, 1234 is your commit number.

Dropping the -r option will give you the entire log:

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