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

Re: Need latest rev num for deleted file

From: Ryan Schmidt <subversion-2009a_at_ryandesign.com>
Date: Wed, 4 Mar 2009 19:58:03 -0600

On Mar 4, 2009, at 10:42, Kynn Jones wrote:

> I want to recover the last committed version of a file (call it foo/
> bar.c) that was formerly under revision control, but which I
> deleted some weeks ago with "svn del". I know that I can use svn
> copy to recover the latest committed revision of this file, but for
> this i need the corresponding revision number. How can I find this
> revision?
>
> TIA!
>
> Kynn
>
>
>
> P.S. FWIW, if I try
>
> % svn log foo
>
> I get as output something like
>
> ----------------------------------------------------------------------
> --
> r1155 | jones | 2008-11-19 10:50:02 -0500 (Wed, 19 Nov 2008) | 1 line
>
>
> ----------------------------------------------------------------------
> --
>
> ...which is of no use to me; for one thing, the date shown above is
> much earlier than the date when I deleted foo/bar.c...

It sounds like directory foo is out of date then. Run "svn up" first.
Then the log should show what you need.

> The output is equally useless if I add the -v flag to the command.

It should be useful with the -v flag once you update the directory.
Or, if you don't want to update, you can "svn log -v" the URL of foo.
You can grep the output for bar.c to find the last revision when it
existed.

> And if I try
>
> % svn log -v foo/bar.c
>
> i get an error message telling me that foo/bar.c is no longer under
> revision control...

Which is correct.

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1269970

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-03-05 02:59:04 CET

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.