You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by GreG N <em...@yahoo.com> on 2005/06/24 23:10:00 UTC

system rollback - branches or switch

Hi all,

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.
Thanks,



		
___________________________________________________________ 
How much free photo storage do you get? Store your holiday 
snaps for FREE with Yahoo! Photos http://uk.photos.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: system rollback - branches or switch

Posted by Ryan Schmidt <su...@ryandesign.com>.
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