Index: bash_completion =================================================================== --- bash_completion (revision 24040) +++ bash_completion (working copy) @@ -423,10 +423,19 @@ return 0 fi - # if not typing an option, - # then fallback on ordinary filename expansion + # if not typing an option if [[ $cur != -* || $stat = 'onlyarg' ]] ; then - return 0 + # if argument is an http directory + if [[ $cur == http://*/ ]] ; then + # strip leading http: due to completion issues with : + cur_path=${cur/http:/} + # query server and then prepend stripped path + ls_results=`svn ls $cur | sed s@^@$cur_path@g` + COMPREPLY=( $(compgen -W "$ls_results" -- "$cur_path") ) + return 0 + fi + # fallback on ordinary filename expansion + return 0 fi # otherwise build possible options for the command @@ -722,3 +731,4 @@ return 0 } complete -F _svnadmin -o default svnadmin +