Files have different revision numbers in Eclipse (Subversion)

99封情书 提交于 2019-12-14 01:20:10

问题


A commit in Subversion increments the revision number for all files by 1(correct me if i'm wrong). But when I look in Eclipse, I see that files have different revision numbers:

The revision number is behind the filename. Why is Eclipse showing different revision numbers for each file? I'm using the Subclipse plugin.


回答1:


You are wrong in assuming that all files have the same revision number.

When committing some files the committed files all get a new revision number. This revision number is the next revision number for the repository used.

Now if you commit one file but not the other the first file gets a new number whereas the other file keeps the old number.

So in your image all files with the same revision number were committed at the dsame time. A higher revision number for a file means that this file was committed later than a file with a lower number.

So the displayed revision numbers are as expected.




回答2:


Subversion working copies do not always correspond to any single revision in the repository.

See "Mixed-revision working copies" SVNBook section.



来源:https://stackoverflow.com/questions/17882270/files-have-different-revision-numbers-in-eclipse-subversion

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