Question

Part of a repository is going to move to it's own repository on a new server, and this may break externals that have been set up.

How can I find a list of all paths that have externals set?

Was it helpful?

Solution

Make an executable script 'find_externals.sh'

#!/bin/bash
repository='/path/to/repo'

echo find paths that have externals set
while read fullpath; do
        result=`svnlook proplist "$repository" "${fullpath}" -v`

        if [[ "$result" == *svn:ext* ]] ; then
                echo;echo "Path: '$fullpath'"
                echo $result
        fi
done

Call it like this

svnlook tree /path/to/repo --full-paths | ./find_externals.sh
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top