gpt4 book ai didi

svn - 谁能解释这个SVN日志输出?

转载 作者:行者123 更新时间:2023-12-04 16:18:56 26 4
gpt4 key购买 nike

我不明白 SVN 如何显示日志输出。假设我有一个修订版为 10 的项目。然后我更改了项目中的一个子文件,该子文件现在为修订版 11。 svn log 命令现在显示以下内容:

svn log -vv 
r10 ...
------
r9 ...
------
r8 ...

但是,只有在指定文件名时才会显示最新的更改 (r11):
svn log -vv ChangedFilename
r11 ...

r11 不应该也出现在第一个命令中吗?

最佳答案

手册中有说明:
http://svnbook.red-bean.com/en/1.5/svn.tour.history.html#svn.tour.history.log

Why Does svn log Not Show Me What I Just Committed?

If you make a commit and immediately type svn log with no arguments, you may notice that your most recent commit doesn't show up in the list of log messages. This is due to a combination of the behavior of svn commit and the default behavior of svn log. First, when you commit changes to the repository, svn bumps only the revision of files (and directories) that it commits, so usually the parent directory remains at the older revision (See the section called “Updates and commits are separate” for an explanation of why). svn log then defaults to fetching the history of the directory at its current revision, and thus you don't see the newly committed changes. The solution here is to either update your working copy or explicitly provide a revision number to svn log by using the --revision (-r) option.

关于svn - 谁能解释这个SVN日志输出?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2021247/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com