subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From julianf...@apache.org
Subject svn commit: r1695871 - /subversion/trunk/tools/client-side/bash_completion
Date Fri, 14 Aug 2015 12:04:03 GMT
Author: julianfoad
Date: Fri Aug 14 12:04:03 2015
New Revision: 1695871

URL: http://svn.apache.org/r1695871
Log:
* tools/client-side/bash_completion
  (_svn): Suppress a trailing space when completing to a partial URL.

Modified:
    subversion/trunk/tools/client-side/bash_completion

Modified: subversion/trunk/tools/client-side/bash_completion
URL: http://svn.apache.org/viewvc/subversion/trunk/tools/client-side/bash_completion?rev=1695871&r1=1695870&r2=1695871&view=diff
==============================================================================
--- subversion/trunk/tools/client-side/bash_completion (original)
+++ subversion/trunk/tools/client-side/bash_completion Fri Aug 14 12:04:03 2015
@@ -423,6 +423,7 @@ _svn()
 		else
 			# show schemas
 			COMPREPLY=( $(compgen -W "$urlSchemas" -- $cur) )
+			compopt -o nospace
 			return
 		fi
 	fi
@@ -440,10 +441,12 @@ _svn()
 	    elif [[ "$here" == */trunk* ]] ; then
 	      # we guess that it is a merge from a branch
 	      COMPREPLY=( $(compgen -W ${here/\/trunk*/\/branches\/} -- $cur ) )
+	      compopt -o nospace
 	      return 0
 	    else
 	      # no se, let us suggest the repository root...
-	      COMPREPLY=( $(compgen -W $(_svn_info Root) -- $cur ) )
+	      COMPREPLY=( $(compgen -W $(_svn_info Root)/ -- $cur ) )
+	      compopt -o nospace
 	      return 0
 	    fi
 	  elif [[ $URL == */branches/* && $here == */trunk* && \



Mime
View raw message