[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

RE: Revert to a previous version

From: <andy.glew_at_amd.com>
Date: 2004-04-29 23:22:51 CEST

How do I revert the repository to a previous revision?

 I the developer has not checked the code in, they can use the svn revert command. But in this case they accidentally checked in a broken bit of code and we need to roll back the revision. I'm confused how I would do that. Could someone provide an example please?

I asked the same question a few days ago.
The recommended way, which is described in the book,
is to do a negative merge
    svn merge -rHEAD:good-rev broken-stuff
    svn ci
          with message "reverting to good-rev"
 
I think both you and I were grepping for terms like "revert".
Somehow "merge" did not resonate. This probably
suggests alternate index terms.
 
My related question, which I haven't yet seen an answer to,
is: is there any way to take the broken revisions,
between good-rev and the broken head, and place
them onto a branch? I.e. to rename those revs to
a different branch (copying them is obvious).
I call this "retrospective branching".
 
 
 
Received on Thu Apr 29 23:24:38 2004

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.