为什么 show log 和 svn update 的修订版本不同? [英] Why revision # different between show log and svn update?
问题描述
当我对一个 svn 文件夹进行更新时,它会显示最新版本,其中更新被视为 Completed At revision:116
When i take update on one svn folder it shows latest revision at which update is taken as Completed At revision:116
但是当我在该文件夹上显示日志时,它显示历史记录中的最新修订号为 100
.
But when i do show log on that folder it shows latest revision number as 100
in history.
我的问题是为什么两个版本号不同步?
My question why both revision numbers are not in synch ?
有关信息:- 当我执行以下命令以查看黑白修订版 100 和 116 是否有任何更改时,我看到创建的 diff.txt 没有内容
For information :- when i execute below command to see if there is any change b/w revision 100 and 116, i see diff.txt created with no content
svn diff -r 100:116 >diff.txt
推荐答案
Subversion 修订是每个存储库全局的
Subversion revisions are global per repository
任何repo 子树 的日志仅显示影响此子树的修订(并忽略所有外部树)
Log for any subtree of repo show only revisions, which affected this subtree (and ignore all outside tree)
\branches>svn up
Updating '.':
...
Updated to revision 5.
存储库 HEAD 是 r5
branches>svn log -q
------------------------------------------------------------------------
r2 | lazybadger | 2013-11-28 00:13:01 +0600 (Чт, 28 ноя 2013)
------------------------------------------------------------------------
r1 | www-data | 2013-11-27 18:13:32 +0600 (Ср, 27 ноя 2013)
------------------------------------------------------------------------
但是最新提交到 /branches
只在 r2 中
but latest commit into /branches
was only in r2
PS:你必须阅读SVNBook,真的
PS: You have to read SVNBook, really
这篇关于为什么 show log 和 svn update 的修订版本不同?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!