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

Re: system rollback - branches or switch

From: Ryan Schmidt <subversion-2005_at_ryandesign.com>
Date: 2005-06-25 13:59:13 CEST

On 25.06.2005, at 01:10, GreG N wrote:

> I'm writing a system rollback app so I can undo the
> changes when I bork my debian system. It's a wrapper
> for dpkg and it logs all package and user changes to a
> svn repository in /root. Each package install is
> committed as a revision. The whole filesystem ( except
> /home, /root, /proc & /sys ) is basically a working
> copy. Capturing the system changes is up and running
> but I need some ideas about how to roll back the
> working directory ( i.e / ) to a previous revision
> without having to blat it and check out the earlier
> revision. I'm thinking svn switch --relocate might be
> the way forward or perhaps branches would be a better
> approach? Any suggestions appreciated.

If you svn update to a previous revision that means you are looking
at an older revision.... but you cannot commit to it. You can only
commit to HEAD. If you want to undo a change and then continue
committing other things, you need to do a reverse merge. There is a
section in The Book that deals with undoing changes in this way. You
should read it.

To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Jun 27 00:30:13 2005

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.