为什么show log和svn update之间的版本#不同?(Why revision # different between show log and svn update?)

当我在一个svn文件夹上进行更新时,它显示最新的修订版本,在此版本上, Completed At revision:116

但是当我确实在该文件夹上显示日志时,它将最新版本号显示为100 。

我的问题为什么两个版本号不同步?

有关信息: - 当我执行下面的命令以查看是否有任何更改b / w版本100和116,我看到创建没有内容的diff.txt

svn diff -r 100:116 > diff.txt

When i take update on one svn folder it shows latest revision at which update is taken as Completed At revision:116

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 ?

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版本

记录任何repo子树只显示修订版本,这会影响此子树(并忽略所有外部树)


以举例说明

\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

PS:真的,你必须阅读SVNBook

Subversion revisions are global per repository

Log for any subtree of repo show only revisions, which affected this subtree (and ignore all outside tree)


Explanation by example

\branches>svn up Updating '.': ... Updated to revision 5.

Repository HEAD is 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) ------------------------------------------------------------------------

but latest commit into /branches was only in r2

PS: You have to read SVNBook, really

更多推荐