开发者

How to find all entries in SVN repo with an external to a given URL [duplicate]

This question already has answers here: Closed 10 years ago.

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜