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

Re: Patch for bash-completion that enables Subversion completion

From: Josh Glover <josh.glover_at_tfcci.com>
Date: 2004-07-27 19:20:06 CEST

Quoth Campbell, Matthew A (Tue 2004-07-27 01:03:07PM -0400):

> > 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.
>
> Yes, I'm sure Master Foo would approve of auto-generating code. :)
>
> However, you may be re-inventing the wheel to some extent. The Debian
> unstable distro of svn comes with bash-completion which automatically
> installs into /etc/bash-completion.d - so somebody has already done this
> before. I'd thought it was already in the subversion /contrib (like the
> spiffy svn.vim script is) but I see it's not. One version or the other
> really ought to be, for those poor non-Debian folks. ;) (Actually, like
> myself when at work...)

Interesting. I did not know of the Debian version, being a Gentooist
myself. I will track down the Debian one (or maybe you could just email
it to me?) and give it a look.

In any case, I *will be* adding a keyword to the Subversion ebuild for
Gentoo that installs some Subversion completion code into
/etc/bash-completion.d. Whether it is mine or the Debian one remains to
be seen. :)

Cheers,
Josh

-- 
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 19:20:47 2004

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