Why revision # different between show log and svn update?

会有一股神秘感。 提交于 2019-12-11 10:09:30

问题


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


回答1:


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



来源:https://stackoverflow.com/questions/35263986/why-revision-different-between-show-log-and-svn-update

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!