[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: Ryan Schmidt <subversion-2006c_at_ryandesign.com>
Date: 2006-08-16 22:24:15 CEST

On Aug 16, 2006, at 17:55, Cory Myers wrote:

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

I believe you want:

svn co -r 12 file:///var/repo/proj/dejgen_at_12

That will check out the pre-deletion version of the project, but of
course you cannot commit any changes to it because it's not HEAD, and
you can't update to HEAD because it would delete itself.

If you want to restore the project, then this may be what you want:

svn cp -r 12 file:///var/repo/proj/dejgen_at_12 file:///var/repo/proj/
dejgen -m "Restoring deleted project"

---------------------------------------------------------------------
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:38:22 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.