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

Re: Backing up to an earlier revision / retrospective branching

From: Scott Lawrence <slawrence_at_pingtel.com>
Date: 2004-04-21 22:12:47 CEST

On Wed, 2004-04-21 at 16:00, andy.glew@amd.com wrote:
> This should be a FAQ, but I could not find an answer
> reading either FAQ or the SVN book. (Possibly the usual
> terminology impedance mismatch.)
>
> A basic usage model question, followed by a question
> leading to a possible enhancement:
> Q: how do you move back to an earlier revision,
> and make it the trunk?
> Q: does Subversion support "retrospective branching"?
>
>
>
> Elaborating on the questions:
>
> ---+ Maing an earlier revision head of the trunk
>
> Q: how do you move back to an earlier revision,
> and make it the trunk?
>
> Yesterday, I had made a few edits and checked them in on
> the trunk, when I realized that the test suite was broken,
> and that the trunk needed to revert to an earlier revision.
>
> E.g. I was at revision 1260, and I needed to revert to
> revision 1255.

Just undo what you did on the trunk:

  svn merge -r1260:1255 <repository>
  svn ci -m "undoing the mess I made since 1255"

that will create 1261 on the trunk, with contents equivalent to 1255.
If you still want the broken stuff, you can copy it to a branch.

-- 
Scott Lawrence        
  Pingtel Corp.   
  sip:slawrence {at} pingtel.com  
  +1.781.938.5306 x162
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Apr 21 22:13:18 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.