[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: bash_completion - subversion add: svn ls/merge ^/<remote path>

From: Philip Martin <philip.martin_at_wandisco.com>
Date: Mon, 17 Aug 2015 11:08:44 +0100

Christian Ferbar <chris_at_qnipp.com> writes:

> --- /etc/bash_completion.d/subversion 2015-08-11 22:17:11.808000000 +0200
> +++ subversion 2015-08-12 11:13:42.135616669 +0200
> @@ -420,6 +420,16 @@
>
> COMPREPLY=( $(compgen -W "$choices" -- $suffix ) )
> return
> + elif [[ $cmd == @(ls|list) && $cur == ^/* ]] ; then
> + # autocomplete für svn ls ^/bla
> + if [[ $cur =~ ((.*/)([^/]*)) ]] ; then
> + url="${BASH_REMATCH[2]}"
> + path="${BASH_REMATCH[3]}"
> + remote_files="$(svn ls "$url")"

What about error messages from the command? Should they be dropped or
displayed? What about authentication prompts? Is --non-interactive
needed?

-- 
Philip Martin
WANdisco
Received on 2015-08-17 12:08:57 CEST

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.