Find paths with svn:external properties with certain string?

前端 未结 1 1601
迷失自我
迷失自我 2021-01-14 00:45

I\'ve a very large subversion repository, it\'s about 7 GB in size and holds many many files and directories from different projects.

Now I did some major change to

相关标签:
1条回答
  • 2021-01-14 01:18

    The quick and dirty way, if it's just a few changes, is to use svn propget with the --recursive flag to get the properties, and make the changes manually (this might take a while to return):

    svn propget --recursive svn:externals http://your.svn.server/ | grep -B 5
    

    To do this in a more automated fashion you can script it:

    • recursively retrieve svn:externals for every path in the root

    • check out directories whose externals contain the string you're looking for (you can split the path component by filesystem separator and check out each component with depth=immediate if you want to be really selective about what you check out)

    • make and commit the change

    The advantage doing it this way is that because your checkout effectively mirrors your repository (even though it's missing loads of stuff) you can make a single commit at the top level with all the changes made.

    HTH.

    0 讨论(0)
提交回复
热议问题