Home About Subversion Key concepts About “HEAD” and “BASE”

About “HEAD” and “BASE”

Besides automatically numbering your revisions when you commit, Subversion repositories also have a couple of ‘meta-revisions’. The most important ‘meta-revisions’ are HEAD and BASE.

The HEAD revision refers to the most current revision in a repository. If you are browsing the HEAD revision of your repository and one of your teammates commits a change, those new changes will be included when you decide to check out a working copy of that revision or fetch specific information about it.

The BASE revision refers to the last revision you updated your working copy to. If you create a working copy of your repository at revision 100, the BASE revision of every file in your working copy is 100. If somebody else commits changes to the same file before you do, you can compare your local changes to the BASE revision, or update your file to let Subversion try and merge the new remote changes into your local copy. If the update succeeds, the BASE revision of your file will be changed to match the latest version in the repository.