home · blog · groups · about us · contact us
DevelopmentNow Blog
 Thursday, March 06, 2008
 
 

Well, you can't really "roll back" commits per se, since Subversion remembers everything you've committed. But, if you realize that your current version of a file or directory is bad, and you need to restore that to a previous version number, you can do a svn copy like this

svn copy --revision 7  http://svn.yourdomain.com/svn/trunk/somefolder/myfile.php ./myfile.php

The above command will pull down myfile.php from version 7 of your repository and place it into your working copy. You can then check it in with

svn commit ./myfile.php -m 'rolled back to version 7'
You can also roll back directories instead of just specific files.
March 6, 2008    Bookmark to Digg or other social bookmarking
#    Disclaimer  |  Comments [0]

Related posts:
Unfuddle Ticket Submission Form
How to Lose 20 Dollars an Hour
10 Articles All Bloggers Should Read
Excel Scrolling Tales from IM
PMARCA
Dedicated Servers


« Office Live Workspace now Open | Main | Portland Open Beer Club »
Comments are closed.