如何在颠覆中计算修订号的增量 [英] How increment in revision number calculated in subversion

查看:30
本文介绍了如何在颠覆中计算修订号的增量的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对于我的一个项目,我使用的是 Subversion(Rabbit VCS).每次签入时修订号都会增加,但我无法理解签入时修订号增量的所有因素.签入导致从 1 到 25 的增量,分支合并导致 增量为 94.谁能指出用于计算此修订号更改的算法.

For one of my project I'm using Subversion(Rabbit VCS). The revision number is incremented for every check-in, but I'm unable to understand all the factors on which amount of increment in revision number on check-in depends. Check-ins caused an increment from 1 to 25 and branch merge did an increment of 94. Can anyone point out to algo used for calculating this revision number change.

推荐答案

针对 Subversion 的每次提交都算作一次修订,无论分支如何.Subversion 报告的数字只是该提交与相应存储库的序列号.每个存储库都有自己的计数.

Every single commit against Subversion counts as one revision, regardless of branch. The number reported by Subversion is simply the sequence number of that commit with the respective repository. Each repository has its own count.

例如,如果您的任意两次提交之间有 94 次跳转,则 subversion 存储库的一个或多个其他用户已经完成了 93 次其他提交.

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 humans there are also automated processes, e.g. automated builds that create tags or branches, and therefore cause the revision number to increase.

Subversion 使用的算法非常简单:创建存储库时从零开始,然后计算对存储库成功提交的次数.请注意,提交是原子的(或事务性的),因此完全顺序类似于具有事务支持的数据库系统.

The algorithm used by Subversion is very simple: Start with zero when the repository is created then count the number of successful commits against the repository. Note that commits are atomic (or transactional) and hence completely sequential similar to a database system with transaction support.

这篇关于如何在颠覆中计算修订号的增量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆