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

Re: Cannot Restore Previous Revision of File Deleted from Repository

From: Garrett Rooney <rooneg_at_electricjellyfish.net>
Date: 2006-08-16 22:18:14 CEST

On 8/16/06, Cory Myers <cory@corymyers.com> wrote:
> Hi,
>
> I have one project---`/var/repo/proj/dejgen/`---which I accidentally
> deleted from both the repository (`svn rm /var/repo/proj/dejgen/`)
> *and* the working copy (`rm -rf ./dejgen/`) simultaneously. The `svn
> rm` commit was revision 13 in this particular Subversion repository;
> the original files for this project were imported at around revision
> 10. When I try to run `svn co /var/repo/proj/dejgen/@12 .` to get
> revision 12, the one just prior to my accidental `svn rm`, I receive
> the following error message:
>
> > svn: File not found: revision 13, path '/dejgen'
>
> My understanding of Subversion is that even `svn rm` should allow the
> project to be checked out from an earlier revision, and I'm eager to
> recover what I accidentally deleted. Any suggestions or
> clarifications ye could offer would be greatly appreciated.

Due to the strangeness of peg revisions, you need both -r 12 and
http://url/blah@12 on that checkout.

What you probably want though is to just copy from the previous
revision, something like what's described here:

http://svnbook.red-bean.com/nightly/en/svn.branchmerge.commonuses.html#svn.branchmerge.commonuses.resurrect

-garrett

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Aug 16 22:25:15 2006

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.