Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I say something like HEAD-1 in svn?

Tags:

svn

revision

I want to refer to a revision just before head or n-revisions before HEAD or something like that.

like image 250
Ashkan Kh. Nazary Avatar asked Feb 22 '12 11:02

Ashkan Kh. Nazary


People also ask

What is head version in svn?

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.

How do I tag in svn?

Creating a Branch or Tag Select the folder in your working copy which you want to copy to a branch or tag, then select the command TortoiseSVN → Branch/Tag....

How do I tag a revision in svn?

Right click on the 'Trunk' folder (we're tagging the latest revision of the files in the Trunk – not the branch). Then select 'Branch/Tag…' in the Tortoise SVN submenu.

What does exclamation mark mean svn?

The Subversion manual states: '!' Item is missing (e.g. you moved or deleted it without using svn). This also indicates that a directory is incomplete (a checkout or update was interrupted).


1 Answers

There's are a few built in revision key words in Subversion which may solve most of your problems:

  • BASE: This is the revision used in your current working directory.
  • HEAD: This is the current tip of the branch.
  • COMMITTED: This is the last committed revision of a file before BASE.
  • PREV: This is the last changed revision from BASE. It's pretty much COMMITTED-1.

For everything else, you'll need to do a calculation as synthesizeerpatel showed you.

like image 115
David W. Avatar answered Oct 03 '22 05:10

David W.