Posted By

beneberle on 06/30/10


Tagged

svn


Versions (?)

SVN Rollback Repository to a Previous Revision with svn merge


 / Published in: SVN
 

URL: http://sankas.blogspot.com/2008/02/how-to-rollback-svn-repository-to.html

  1. Update your working copy to the latest revision.

  2. Merge a specific revision to your current working copy:

svn merge -rHEAD:xxxx [svn-repository-url] [path-to-local-copy]

* HEAD – indicates the revision of the local copy of the code is the latest revision.
* xxxx – is the revision which want to rollback.
* [svn-repository-url] - is the project's URL in SVN repository
* [path-to-local-copy] - is the path to the local copy of the project
  1. Commit the changes which occurs as a result of above steps.
  1. svn merge -r1234:1000 http://repository.url/projects/directory /LOCAL/repository/directory

Report this snippet  

You need to login to post a comment.