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

RE: Re: Revert to a previous version

From: Ray Johnson <Rayj_at_ingenio.com>
Date: 2004-04-28 18:22:56 CEST

Thanks. In my case I checked in something I need to revert in revision
39. I think try the following:

C:\subversion\KeenDev\SRC\sbin>svn merge -r 39:38
http://svn/SourceCode/KeenCorp/SRC/sbin

C:\subversion\KeenDev\SRC\sbin>svn status

Neither command returns any info & when I look at the file it has not
been reverted back. However, if I do the following for one of the
changed files I do see the differences:
C:\subversion\KeenDev\SRC\sbin>svn diff -r 39:38 README.txt
***changes listed***

Ok - now I see the difference. I just tried the following:
C:\subversion\KeenDev\SRC\sbin>svn merge -r 39:38 .

This worked. So using the local path versions the URL as suggested in
the book (in the Undoing changes) section worked. However, that begs
the question of why the version with the URL above did not work?

Ray

-----Original Message-----
From: McClain Looney [mailto:m@loonsoft.com]
Sent: Wednesday, April 28, 2004 9:06 AM
To: users@subversion.tigris.org
Subject: Re: Revert to a previous version

svn co project
<edit foo.c, adding bugs>
svn ci foo.c (commits to r348)
<realize terrible error>
svn merge -r348:347 foo.c
svn ci foo.c (commits 349)

note the ordering of the revision numbers in the merge command. what
this really says is "make a diff between revision 348 and 347, and apply
it immediately to foo.c"

if you are trying to revert a directory tree with moves or deletes in
it, and are getting arcane errors, try the --ignore-ancestry flag.

hope this helps.

On Wednesday 28 April 2004 10:57 am, Ray Johnson wrote:
> How do I revert the repository to a previous revision?

> P.S. Sorry if this is in the book or otherwise already covered. I
> just haven't been able to figure it out either because I'm dense or
> I'm not looking in the right place. So a kind pointer to where I
> should RTFM would be very helpful. :)

--
McClain Looney
LoonSoft LLC
m@loonsoft.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Apr 28 18:23:38 2004

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.