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

Re: reverting to several versions ago

From: Ryan Schmidt <subversion-2007a_at_ryandesign.com>
Date: 2007-01-20 01:30:28 CET

On Jan 19, 2007, at 18:18, Ioan Vlad wrote:

> I started to use Subversion as part of an open-source project I
> collaborate with. There is a repository on a central server. I grab
> updates with svn update, and contribute changes to select files
> with svn add and svn commit [path-to-files]. All is simple and nice.
>
> The project has tests to verify if new bugs have been introduced or
> not. I submitted my changes several versions ago to the central
> repository (several people made changes after me), but only today I
> ran the tests, and they failed. I need to restore the whole package
> on my machine to the state it was in at one exact revision number
> (say n), run the tests, then restore the next revision number (n
> +1), as if I re-made the changes, run the tests again...
>
> I looked in the svn book and the faq, and found "svn revert", but
> that seems to revert only one step back. How do I revert the whole
> package to the state it was at a specific revision n, several
> revisions ago?

svn up -r42

will update your working copy to the state of the repository at
revision 42.

Something different: If you want to undo a change, and commit that
undo to the repository, you do a reverse merge, which is described
in the book:

http://svnbook.red-bean.com/en/1.2/
svn.branchmerge.commonuses.html#svn.branchmerge.commonuses.undo

-- 
To reply to the mailing list, please use your mailer's Reply To All  
function
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sat Jan 20 01:30:56 2007

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