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

Patch for bash-completion that enables Subversion completion

From: Josh Glover <josh.glover_at_tfcci.com>
Date: 2004-07-27 18:47:55 CEST

Some of you, I suspect, might already be using bash-completion. If not,
you might find it worth your time to check out:

http://www.caliban.org/bash/
http://www.jmglov.net/unix/bash.html

bash-completion has pretty advanced completion for CVS, and I *really*
missed it when I switched to SVN a couple of weeks ago.

I found contrib/subversion in the source tarball for latest version of
bash-completion,[1] but I wanted something a little smarter, like how
completion for cvs(1) works currently.

So, I rolled my own. But, in the spirit of Master Foo (right, Matthew?),
and The Unix Way, I wrote a little Perl script that generates shell code
to implement completion, using the 'svn help' command. This has the nice
property of allowing me to automatically generate the code whenever svn
options or subcommands change. I have attached the Perl script as well,
just in case you are interested.

Find attached a patch against bash-completion-20040711 that implements
completion for svn(1) (Subversion).

I have submitted the patch to Ian, who wrote and maintains bash-
completion, so hopefully, it will be rolled into the main distribution
soon. Until then, you should always be able to grab the latest version
of the patch from:

http://opensource.jmglov.net/

(I know, it is not there yet, but it will be when I go home for lunch.)

Cheers,
Josh

[1] http://www.caliban.org/files/bash/bash-completion-20040711.tar.gz

-- 
Josh Glover <josh.glover@tfcci.com>
Software Engineer
Twenty First Century Communications, Inc.
http://www.tfcci.com/
GPG keyID 0x22111305 (E210 61C6 14DF B480 C211  AE2A 0F12 1D7B 2211 1305)
gpg --keyserver pgp.mit.edu --recv-keys 22111305

  • application/pgp-signature attachment: stored
Received on Tue Jul 27 18:48:43 2004

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

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