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

Re: How to display historic revisions after a delete

From: Stefan Sperling <stsp_at_elego.de>
Date: Sun, 22 May 2011 17:26:24 +0200

On Fri, May 20, 2011 at 01:59:43PM -0700, Dave Sailors wrote:
> When we do a svn delete on a file, it still shows up in that revision of
> the directory for a svn list -r xxxx on the directory itself, but you
> can't list that file by revision number directly. You get an error
> message saying the file isn't in the the current revision of the
> repository.
>
>
>
> Example:
>
>
>
> File
> svn://srn-redhat/opt/vob/cp_vob/cp-image/trunk/sw_snmp/sw_agent/access_r
> psm.c
>
> Was deleted in revision 5148.
>
>
>
> When we do a svn list we get the following error.
>
>
>
> svn ls -r 5145
> svn://srn-redhat/opt/vob/cp_vob/cp-image/trunk/sw_snmp/sw_agent/access_r
> psm.c
>
> svn: File not found: revision 5148, path
> '/trunk/sw_snmp/sw_agent/access_rpsm.c'
>
>
>
> This is also a problem with the Subversion diff command.
>
>
>
> Is there something else we need to do to be able to see changes between
> historic versions of files that have been deleted from the repository?

Yes, you need to specify a peg revision.
See http://svnbook.red-bean.com/nightly/en/svn.advanced.pegrevs.html

Currently, the best way to find the right peg revision is to log a
known parent directory that still exists in HEAD, and search for
the deleted path in the output.
Received on 2011-05-22 17:26:59 CEST

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.