You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Benjamin Fritz <fr...@gmail.com> on 2014/07/16 15:52:25 UTC

How to see all history of a deleted file without knowing the exact last revision?

Actually, I was looking to answer this question on stackoverflow:
http://stackoverflow.com/questions/24766535/how-to-tell-what-revision-a-folder-was-deleted-in

The person was asking how to find the revision a folder was deleted
in, and they knew some really old revision where the folder was
definitely present (example: revision 2000 out of 10000 had the
folder).

I thought this would be a great use for peg revisions! But this throws an error:

svn log -r 1:HEAD http://example.com/svn/path/that/got/deleted@2000

This stops the log history at revision 2000, which makes it useless
for finding changes (like a deletion) *after* the known revision:

svn log http://example.com/svn/path/that/got/deleted@2000

In the general case I might be interested in changes to a file that
happened between when I know it was there and when it eventually got
deleted (for example, maybe somebody not very good at SVN renamed a
file without using SVN on some branch, removed the old filename, and
then merged back while we continued making changes on trunk). Is it
possible to find the changes from a known revision to the deletion
point, without knowing the exact revision where the file got deleted?

Re: How to see all history of a deleted file without knowing the exact last revision?

Posted by Ryan Schmidt <su...@ryandesign.com>.
On Jul 16, 2014, at 8:52 AM, Benjamin Fritz wrote:

> Actually, I was looking to answer this question on stackoverflow:
> http://stackoverflow.com/questions/24766535/how-to-tell-what-revision-a-folder-was-deleted-in
> 
> The person was asking how to find the revision a folder was deleted
> in, and they knew some really old revision where the folder was
> definitely present (example: revision 2000 out of 10000 had the
> folder).
> 
> I thought this would be a great use for peg revisions! But this throws an error:
> 
> svn log -r 1:HEAD http://example.com/svn/path/that/got/deleted@2000
> 
> This stops the log history at revision 2000, which makes it useless
> for finding changes (like a deletion) *after* the known revision:
> 
> svn log http://example.com/svn/path/that/got/deleted@2000
> 
> In the general case I might be interested in changes to a file that
> happened between when I know it was there and when it eventually got
> deleted (for example, maybe somebody not very good at SVN renamed a
> file without using SVN on some branch, removed the old filename, and
> then merged back while we continued making changes on trunk). Is it
> possible to find the changes from a known revision to the deletion
> point, without knowing the exact revision where the file got deleted?

Last I checked, you have to know the revision when it got deleted. You can find out by running "svn log -vq" on the parent directory.