Reverting to a previous version with svn (rollback)

To rollback (that is, revert to a previous version) some files/dirs… using subversion, you need as Aral Balkan explains to

  • Merge the previous version
  • Commit

Like this (assumming you want to roll back from version 61 to 58):

pera $ svn merge r61:58
[... output ...]
pera $ svn ci -m "Reverted to version 58"

which is strange but works. Forget about the revert command, it has a different functionality.
You may want to run

pera $ svn merge --dry-run r61:58 ........

to check the changes which will take place before messing everything up.

1 Comment

speak up

Add your comment below, or trackback from your own site.

Subscribe to these comments.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

*Required Fields