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

how to revert to a previous version in subversion

From: <jingzheng_at_softhome.net>
Date: 2004-03-02 00:35:58 CET

I just installed subversion 1.0.0 and experiment with it. I tried to
simluate the following scenario:
checked in revision 1;
added some "buggy" code, checked in as revision 2;
added some other "buggy" code, checked in as revision 3;
now I want to revert the working copy to revision 1, make some changes and
checked in as revision 4.
I can get revision 1 to working copy by doing:
$svn update -r 1 (right after checking in revision 3)
then I modify my code and do
$svn ci -m "test"
svn complains something like
"svn: Out of date: '/mysvn/build.conf' in transaction 'y'"

I know I can do "svn update" to make the complaint go away, but that is NOT
my goal. I don't want to merge changes in revision 2 and revision 3. I just
want revision 1 and my new changes on top of revision 1 checked in as
revision 4.

in cvs I know I can do "cvs update -j 1.5 -j 1.3" to revert "buggy" changes,
seems svn doesn't have a similar option for update. Does anyone know how to
achieve this in subversion? I searched google and the subversion book and
couldn't find an example for this. "svn revert" is not what I need here.
Thanks a lot. --Jing

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Mar 2 00:35:13 2004

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