You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Cory Myers <co...@corymyers.com> on 2006/08/16 15:55:05 UTC
Cannot Restore Previous Revision of File Deleted from Repository
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.
Thanks,
Cory Myers
cory@corymyers.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: Cannot Restore Previous Revision of File Deleted from Repository
Posted by Garrett Rooney <ro...@electricjellyfish.net>.
On 8/16/06, Cory Myers <co...@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
Re: Cannot Restore Previous Revision of File Deleted from Repository
Posted by Ryan Schmidt <su...@ryandesign.com>.
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@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@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