问题
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