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

Re: Digging out an old/deleted file

From: François Beausoleil <fbeausoleil_at_ftml.net>
Date: 2004-12-09 16:28:27 CET

On 09/12/2004 08:56, Erik Wasser wrote:
> Hi users@subversion.tigris.org,
>
> I deleted a file in my tree 'long' ago (read: too long to remember) and
> I want that file back. I don't know the revision number where I deleted
> the file (but I know the exact filename and position).
>
> What can I do? How can I get the lastest revision of that file without
> trying every number?

Well then, simply do svn log the path (not the file), backwards in time.

For example, if your file was path/in/repos/file.txt, do this:
svn log --verbose -r{approx. date of deletion}:1 path/in/repos

Now, read the verbose output, and find the deletion line.

Hope that helps,
François

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Received on Fri Dec 10 03:16:03 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.