Some directories were removed from a Subversion repository at a given revision.  The history still exists for these directories and their files. How do I view a file from such a directory at a revision in the past?  I tried using "-r NUMBER" for svn cat and svn ls but it still complained that the file was not found for the latest revision.
            Asked
            
        
        
            Active
            
        
            Viewed 1,625 times
        
    0
            
            
         
    
    
        Unihedron
        
- 10,902
- 13
- 62
- 72
 
    
    
        Graeme Moss
        
- 7,995
- 4
- 29
- 42
3 Answers
1
            If you deleted branch 40, this doesn't work:
$svn annotate  svn+ssh://svn/space/svn/supercow/branches/40/pom.xml
svn: '/supercow/branches/40/pom.xml' is not a file in revision 12467
But you can do this:
$svn annotate  svn+ssh://svn/space/svn/supercow/branches/40/pom.xml@10000
 
    
    
        Nishant
        
- 54,584
- 13
- 112
- 127
 
    
    
        Laurens Bronwasser
        
- 26
- 1
0
            
            
        Could you check out that revision?
I would create a new directory outside of your working directory. Check out the project, or just the parent folder of the file you're interested in.
$ cd tmp
$ svn co -r 123 http://host_name/svn_dir/repository_name/project/trunk svn_test
 
    
    
        Steve Jackson
        
- 1,330
- 1
- 15
- 25
0
            
            
        svn log --verbose
for a given directory
svn log --verbose protocol://url/to/the/folder/which/the/files/were/deleted/under
Find the the revision and file-names that were deleted.
svn up -r 911 deletedFile.ext
To checkout.
well, up is not suggested as per here, use copy instead.
