What's the difference between 'commit' and 'revision'

人走茶凉 提交于 2019-12-23 09:16:23

问题


What's the difference between a commit and revision? We use SVN, and get metrics from Atlassian Fisheye. There is a report in Fisheye that shows the 'top committers - by revision' and 'top commiters - by commits'.

No-one here can tell me what the difference is.

Many thanks! Andy


回答1:


A commit can contain many file revisions. A file revision is basically a file that is modified as part of a commit so a single commit can have many revisions.

http://confluence.atlassian.com/display/FISHEYE/Glossary#Glossary-Commit

So "Top Committers - By Commit" shows the users who have committed the most changesets/changelists and "Top Committers - By Revision" shows the users who have created the most file versions as part of their commits.

http://confluence.atlassian.com/display/FISHEYE/FishEye+Charts?focusedCommentId=221448800#comment-221448800




回答2:


From Wikipedia:

Commit: A commit (checkin, ci or, more rarely, install, submit or record) is the action of writing or merging the changes made in the working copy back to the repository. The terms 'commit' and 'checkin' can also be used in noun form to describe the new revision that is created as a result of committing.

and

Revision : (Also version) A version is any change in form. In SVK, a Revision is the state at a point in time of the entire tree in the repository.



来源:https://stackoverflow.com/questions/8586601/whats-the-difference-between-commit-and-revision

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