Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why revision number in version control does not increase by 1 all the time?

When I use "svn log", for example, to view the revision history, I find that the revision number does not increase one by one all the time. For example, one revision has revision number "1234" but its next revision has revision number "1256" instead of "1235". What happens between these two revisions? What their revision numbers are not consecutive?

Thanks.

like image 816
Ida Avatar asked Nov 24 '12 13:11

Ida


2 Answers

Your project within the SVN repo might not be the only one.
Any revision in any part of the SVN repo will increment the global revision number by one.
See also:

  • "How increment in revision number calculated in subversion".
  • "Subversion revision number across multiple projects"
like image 101
VonC Avatar answered Nov 15 '22 00:11

VonC


If you get the log from the root of your repository, you will see that the revision number is incremented one by one. BUT, you are getting the log from a sub-directory of your repo. This means that there are lots of revisions that does not belong to your sub-directory.

like image 43
Gupta Avatar answered Nov 15 '22 00:11

Gupta