TortoiseSVN: What is head revision

主宰稳场 提交于 2020-01-22 04:56:48

问题


I'm a VSS user learning how to use SVN, and I have selected TortoiseSVN as my platform. Can someone tell me what the term "HEAD Revision" means?


回答1:


It means the Latest Revision.

Getting the HEAD Revision from SVN would be like doing a 'Get Latest...' in VSS.




回答2:


Since your question is Subversion-specific, here is what the SVN book says:

HEAD

The latest (or “youngest”) revision in the repository.

For comparison, here are the other revision keywords:

BASE

The revision number of an item in a working copy. If the item has been locally modified, this refers to the way the item appears without those local modifications.

COMMITTED

The most recent revision prior to, or equal to, BASE, in which an item changed.

PREV

The revision immediately before the last revision in which an item changed. Technically, > this boils down to COMMITTED−1.




回答3:


It is the very latest/current revision of the project.




回答4:


Wikipedia defines it as:

Head The most recent commit.

See Common_vocabulary.




回答5:


The latest revision that you committed to the repository.

Example: If your last commit created revision 15, then 15 is the HEAD revision




回答6:


The Tortoise help file is well worth a read. From the Glossary:

HEAD revision
The latest revision of a file or folder in the repository.




回答7:


In Subversion, the repository has a sequentially numbered revision that marks each state. HEAD is an alias for the latest revision of the repository. When a revision is not specified, HEAD is assumed.

File and directory content are referenced by path and revision. The reference is to the content at the path when the repository was changed to that revision—whether the content at that path was changed or not.

Note: If the last action at a path was to delete it, that path does not have a HEAD revision (nor the repository revision created when the deletion was committed, nor any thereafter).

[So, contrary to some other answers and some cited documentation, HEAD does not refer to the latest revision of a file. You would have to go back to at least just before it was deleted for that.]



来源:https://stackoverflow.com/questions/2057941/tortoisesvn-what-is-head-revision

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