2012-11-30 49 views

回答

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 
相關問題