> 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