after execute $svn list command i found a large number of repository ...and it is complex to find all repository(some svn repository exist in folder within folder within folder and so on) ...if you can help me by give me a method to design a something to write this repository list in excel sheet or notpad for example (OS = sunsolaris)
|
You're doing it wrong! Instead of manually trying to find something and copying & pasting everything around all the time, please learn the basics of Linux/Unix shell. It WILL boost your productivity through the roof. Don't believe me? Let's suppose you need to find where a repository called myimportantrepository is located. This will find it for you:
If you want to see couple of lines before and after that match, grep parameter -C will help you. This would print 5 lines of text before and after the found match:
|
|||
|
|
|
Shell redirection (">") to a text file? This can be done in just so many ways... |
|||
|
|
|
The basic idea is that you will have to write a shell or python script to traverse your SVN tree and then print the names of your directories. In SVN a repository holds folders. What you are referring to a as a repository may only be a folder? In that case you have to figure out how to tell what is a repository or not. It is not trivial, one way I can think of is to use python on the output of
Then you can grep the lines which end with a '/' to filter only directories. Then assuming the 'repositories' you are looking for have a 'trunk', 'branches' and 'tags' subdirectory. You can figure out which folders are 'repositories' I don't see a simpler way. |
|||||||
|