[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: Steve Bakke <steven.bakke_at_amd.com>
Date: 2007-01-20 04:09:25 CET

>>
>> 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
>

I'm just chiming in here because after seeing the last response, I jumped
the gun and attempted to test using the command 'svn up -r##'.

This worked OK. I did this on a subdirectory of my working copy.

% svn up -r102 subdir1
D subdir1

I happened to have picked a revision which did not have this directory.
Then for kicks I tried doing a regular update at the top-level of the
working copy:

% svn up
svn: Failed to add directory 'subdir1': object of the same name already
exists

Doesn't that seem like a bug? I thought that it should just revert back to
the head revision with no problems. I mainly executed the command out of
curiosity, but it seems that this sequence did not produce a result that I
would have expected.

-Steve

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sat Jan 20 04:10:00 2007

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