[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: Dave Sailors <dsailors_at_sorrentonet.com>
Date: Thu, 26 May 2011 15:47:56 -0700

Hi Stefan,

Thanks, this is exactly what we needed. We appreciate your help.

Dave

-----Original Message-----
From: Stefan Sperling [mailto:stsp_at_elego.de]
Sent: Sun 5/22/2011 8:26 AM
To: Dave Sailors
Cc: users_at_subversion.apache.org; David Austin
Subject: Re: How to display historic revisions after a delete
 
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.

This E-mail message is for the sole use of the intended recipient(s) and may
contain confidential and privileged information. Any unauthorized review, use,
disclosure or distribution is prohibited. If you are not the intended recipient,
please contact the sender by reply E-mail and destroy all copies of the original
message.
Received on 2011-05-27 00:48:43 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.