Friday, March 4, 2011

How to list all svn externals recursively

You can use the following command to list all the svn externals in a directory structure.

svn propget svn:externals -R

2 comments:

  1. Thanks, I should have expected this while google searching. ;)

    ReplyDelete
  2. The resulting externals may have other externals. This command will not list externals within externals.

    You should use a simple `svn status` command and filter out all lines that start with an X, to really get all externals.

    Windows:
    svn status . | findstr /R "^X"

    Linux/Unix:
    svn status . | grep -E "^X"

    ReplyDelete