On 11/27/10 7:31 AM, Edward Ned Harvey wrote:
From: Edward Ned Harvey [mailto:s...@nedharvey.com]
Complete details follow, but this is the relevant part. A file named foo
was deleted in rev 4. It seems, if I svn log f...@3, and I specify -r
0:head, then I should get the complete history of that file, even for revs
higher than 3.
Now this is effed up. :-) It works if I resurrect the file, but only if I
resurrect it with the same name as before.
[r...@filer wc]# svn cp file://${HOME}/trash/repo/f...@3 goo
A goo
[r...@filer wc]# svn commit -m 'resurected and renamed'
Adding goo
Committed revision 5.
[r...@filer wc]# svn log goo
------------------------------------------------------------------------
r5 | root | 2010-11-27 08:27:33 -0500 (Sat, 27 Nov 2010) | 1 line
resurected and renamed
------------------------------------------------------------------------
r3 | root | 2010-11-27 08:12:45 -0500 (Sat, 27 Nov 2010) | 1 line
changed b
------------------------------------------------------------------------
r2 | root | 2010-11-27 08:12:32 -0500 (Sat, 27 Nov 2010) | 1 line
changed a
------------------------------------------------------------------------
r1 | root | 2010-11-27 08:12:20 -0500 (Sat, 27 Nov 2010) | 1 line
added
------------------------------------------------------------------------
[r...@filer wc]# svn log -r 0:head file://${HOME}/trash/repo/f...@3
svn: File not found: revision 5, path '/foo'
[r...@filer wc]# svn mv goo foo
A foo
D goo
[r...@filer wc]# svn commit -m 'renamed back to original'
Adding foo
Deleting goo
Committed revision 6.
[r...@filer wc]# svn log -r 0:head file://${HOME}/trash/repo/f...@3
------------------------------------------------------------------------
r1 | root | 2010-11-27 08:12:20 -0500 (Sat, 27 Nov 2010) | 1 line
added
------------------------------------------------------------------------
r2 | root | 2010-11-27 08:12:32 -0500 (Sat, 27 Nov 2010) | 1 line
changed a
------------------------------------------------------------------------
r3 | root | 2010-11-27 08:12:45 -0500 (Sat, 27 Nov 2010) | 1 line
changed b
------------------------------------------------------------------------
r5 | root | 2010-11-27 08:27:33 -0500 (Sat, 27 Nov 2010) | 1 line
resurected and renamed
------------------------------------------------------------------------
r6 | root | 2010-11-27 08:28:44 -0500 (Sat, 27 Nov 2010) | 1 line
renamed back to original
------------------------------------------------------------------------
I think a delete doesn't appear in a file's history - the file just no longer
appears in subsequent revisions. However a delete is a change in the containing
directory. Does 'svn log -v' on the directory above show the changes in the way
they happened?
--
Les Mikesell
lesmikes...@gmail.com