Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SVN mark major version

Sorry, I'm new to SVN and I looked around a little for this. How do you mark a major version in SVN, kind of like set up a restore point. Right now I just setup my server and added all my files- I've been intermittently committing different changes. When I have something in a stable state is there a way to mark this so I can easily revert back to it if necessary?

like image 723
GBa Avatar asked Sep 19 '08 14:09

GBa


2 Answers

Sounds like you're looking for tags.

Tags in the Subversion book

"A tag is just a “snapshot” of a project in time"

like image 173
David Precious Avatar answered Oct 10 '22 19:10

David Precious


The typical way is to create a 'tag' directory in the root of your repository and copy the entire trunk over to that directory. (Copying is cheap in Subversion because it's just adding references to specific revisions of existing files.)

So you might say:

svn cp http://svn.example.com/trunk/ http://svn.example.com/tags/major-revision-01/

See the Subversion book for more information, particularly the tags chapter.

like image 30
Stephen Deken Avatar answered Oct 10 '22 19:10

Stephen Deken