Hi Edward,

thanks for having responded.
Can I file a feature request for that in the issue tracker, 
what do you think?
@Ryan: Of course with a peg rev I can log that single rev. But the 
rev number of that rev is that what we are looking for! To find out
this rev number, we want to use an earlier peg rev where we know 
that the file still existed and want to add "-r1:head" as operative 
revs to see all revs including the rev where the file was deleted.

Paul.
 

> -----Ursprüngliche Nachricht-----
> Von: Edward Ned Harvey [mailto:s...@nedharvey.com] 
> Gesendet: Samstag, 27. November 2010 05:33
> An: svn-u...@web.de; users@subversion.apache.org
> Betreff: RE: How to find out the rev number where a file was deleted?
> 
> > From: svn-u...@web.de [mailto:svn-u...@web.de]
> > 
> > I would appreciate advice for how to find out the rev 
> number where a file
> > was deleted or moved.
> > 
> > I expected this command:
> > svn log -v -r 1:head "file:///[...]/xx/a...@1"
> 
> Yeah.  This is annoying.  Once a file is deleted, I can't svn log it
> anymore.  Even if I specify a rev where the file existed.
> 
> <ok to skip this section>
> [u...@machine ~]# mkdir trash
> [u...@machine ~]# cd trash/
> [u...@machine trash]# mkdir repo
> [u...@machine trash]# svnadmin create repo
> [u...@machine trash]# mkdir working
> [u...@machine trash]# svn co file:///home/user/trash/repo working
> Checked out revision 0.
> [u...@machine trash]# cd working/
> [u...@machine working]#
> [u...@machine working]#
> [u...@machine working]#
> [u...@machine working]# touch foo
> [u...@machine working]# svn add foo
> A         foo
> [u...@machine working]# svn commit -m 'first commit' foo
> Adding         foo
> Transmitting file data .
> Committed revision 1.
> [u...@machine working]# echo "a" > foo
> [u...@machine working]# svn commit -m 'second commit' foo
> Sending        foo
> Transmitting file data .
> Committed revision 2.
> [u...@machine working]# svn log foo
> --------------------------------------------------------------
> ----------
> r2 | user | 2010-11-26 23:25:59 -0500 (Fri, 26 Nov 2010) | 1 line
> 
> second commit
> --------------------------------------------------------------
> ----------
> r1 | user | 2010-11-26 23:25:46 -0500 (Fri, 26 Nov 2010) | 1 line
> 
> first commit
> --------------------------------------------------------------
> ----------
> </ok>
> 
> 
> Here's the important part:
> 
> 
> [u...@machine working]# svn rm foo
> D         foo
> [u...@machine working]# svn commit -m 'deleted' foo
> Deleting       foo
> 
> Committed revision 3.
> [u...@machine working]# svn log foo
> svn: 'foo' is not under version control
> [u...@machine working]# ls
> .svn/
> [u...@machine working]# svn log -r 2 foo
> svn: 'foo' is not under version control
> [u...@machine working]# svn log -r 1 foo
> svn: 'foo' is not under version control
> [u...@machine working]# svn --version
> svn, version 1.6.2 (r37639)
>    compiled May 11 2009, 11:51:14
> 
> 
> 
> 

Reply via email to