How to find all entries in SVN repo with an external to a given URL [duplicate]
Possible Duplicate:
List all svn:externals recursively?
I need to move the location of a component that is referenced by many projects with an svn:external
.
How can I easily find all locations that 开发者_如何学运维have an svn:external
to this URI?
svn propget svn:externals http://path/to/repos -R
lists all externals, its not filtered, suppose i could grep it if i was on a decent OS.
I used a slight variation on the other answer (apologies for partial plagiarism)...
svn propget --xml -R svn:externals https://myserver/myrepo > results.xml
and then ran the results through an XPath using something like...
//properties/target[contains(./property,'https://myserver/myrepo/mysearchpath')]/@path
This gave me a short list containing all references.
The longest part was waiting for the propget which takes literally hours on our repository. Not sure if this can be improved.
精彩评论