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

Re: recovering a deleted file

From: Ben Collins-Sussman <sussman_at_collab.net>
Date: 2003-10-30 05:09:42 CET

On Wed, 2003-10-29 at 20:17, Ross Boylan wrote:
> I deleted a file and wanted to get it back.

The general practice is:

  * discover an appropriate (rev, path) pair that you want to resurrect,
usually by running 'svn log -v' on any parent directory to see exactly
when and how a file was deleted.

  * then either run 'svn cp -rN URL working-copy; svn commit', or

  * or, if the entire revision was a deletion you want to undo, then
revert the whole change: 'svn merge -rN:N-1 URL-to-parent-dir
working-copy'.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Oct 30 05:10:28 2003

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.