列出subversion存储库中具有特定属性的所有路径&值

时间:2012-11-30 11:22:52

标签: svn svnadmin svnlook

存储库的一部分将在新服务器上移动到它自己的存储库,这可能会破坏已经设置的外部存储。

如何查找具有外部设置的所有路径的列表?

1 个答案:

答案 0 :(得分:1)

制作一个可执行脚本' 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

像这样称呼

svnlook tree /path/to/repo --full-paths | ./find_externals.sh