As an increase in the number of revisions calculated in subversion

For one of my projects, I am using Subversion (Rabbit VCS). The revision number is incremented for each registration, but I cannot understand all the factors that determine the size of the increment of the version number during registration. Entries caused an increment of 1 to 25 , and merging branches increment of 94 . Can anyone point out the algorithm used to calculate this change in version number.

+1
source share
1 answer

Each individual commit againt Subversion is considered one revision. The number reported by Subversion is just the sequence number of this commit. For example, if there is a jump of 94 between any two of your commits, one or more other users of the subversion repository have completed 93 other commits.

In some development environments, in addition to people, there are also automated processes, for example. Automated assemblies that create tags or branches, and therefore increase the number of versions.

The algorithm used by Subversion is very simple: start from scratch when creating the repository, then count the number of successful commits against the repository. Note that commits are atomic (or transactional) and therefore fully sequential, similar to a transactional database system.

+4
source

All Articles