Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

We are looking for a script that will traverse in recursive mode all subfolders and list all SVN repository URLs and the path where it was found.

It will be used on /home folder of a user.

share|improve this question
add comment

1 Answer

This one should work more or less independently of the svn version

find . -type d -exec svn info {} \; 2>/dev/null \
| awk '/^Repository Root/ { 
            if ($0 != repository) 
                print path " " $0; repository = $0
       }
       /^Path/ { path=$0 }'
share|improve this answer
    
This does a file parse, but this fails on svn1.7 –  Pentium10 Nov 16 '11 at 12:47
    
@Pentium10 see the update to my Answer –  artistoex Nov 16 '11 at 14:38
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.