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

Re: Revert to a previous version

From: McClain Looney <m_at_loonsoft.com>
Date: 2004-04-28 18:06:15 CEST

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
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:06:52 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.