How to find all entries in an SVN repo with an external url

Possible duplicate:
List all svn: externals recursively?

I need to move the location of the component referenced by many projects with svn:external .

How can I easily find all locations with svn:external for this URI?

+7
svn
source share
2 answers
  svn propget svn:externals http://path/to/repos -R 

lists all external ones, does not filter it, suppose I could grep it if I were on a decent OS.

+10
source share

I used a little variation on another answer (apologies for partial plagiarism) ...

 svn propget --xml -R svn:externals https://myserver/myrepo > results.xml 

and then executed the results through XPath using something like ...

 //properties/target[contains(./property,'https://myserver/myrepo/mysearchpath')]/@path 

This gave me a short list containing all the links.

The longest part was expecting a query that takes literally hours in our repository. Not sure if this can be improved.

+6
source share

All Articles