Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SVN: how to return to previous revision?

Tags:

svn

A series of mistakes were made in a project I am working on. How do I revert back to a known working revision and build on top of that? Say I am at revision 15, but I want to go back to revision 10 -- and work on 10 onwards. I'm using Zend Studio.

Can I delete revisions that exist in SVN?

like image 858
StackOverflowNewbie Avatar asked Feb 22 '11 00:02

StackOverflowNewbie


People also ask

How do I revert in TortoiseSVN?

If you want to undo all changes you made in a file since the last update you need to select the file, right click to pop up the context menu and then select the command TortoiseSVN → Revert A dialog will pop up showing you the files that you've changed and can revert. Select those you want to revert and click on OK.

How do I find a particular revision in svn?

If you want to write a script which requires no input, you should use the official Subversion command line client instead. checkout a working copy in REV revision: svn checkout --revision REV https://svn.example.com/svn/MyRepo/trunk/ svn checkout https://svn.example.com/svn/MyRepo/trunk/@REV.

What does Revert command do in svn?

Reverts any local changes to a file or directory and resolves any conflicted states. svn revert will not only revert the contents of an item in your working copy, but also any property changes.


1 Answers

From the command line:

svn up -r [revision_number] 

Where [revision_number] is the revision you want to revert to.

And no, you cannot delete revisions that already exist in SVN.

like image 66
ashicus Avatar answered Sep 28 '22 17:09

ashicus