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

[PATCH] bash URL completion

From: Gerlando Falauto <gerlando.falauto_at_keymile.com>
Date: Mon, 30 Jul 2012 11:51:36 +0200

Hi everyone,

I strongly felt the urge to have some way of bash-completing URLS from
the command line when doing checkouts, listing, cat (for README/REVNOTES
files) and so on...
I looked up the "tools/client-side/bash_completion" script only to
realize it works for local (file:///) but not remote URLs.
So I came up with the attached patch, which works for me (tested with
bash 4.1.2, svn 1.6.11)
The idea was (apart from adding sub-dir completion with a gross "svn ls"
command) to (manually) list known repositories within a ~/.svn_repos
file, one per line:


The reason behind this is that data cached in
~/.subversion/auth/svn.simple does not contain the full project URL
(only the server name) and I could not find a way to get that
information anywhere else.

I known it would've made more sense to ask for advice *BEFORE* touching
the code, but still... :-)

Thanks in advance for your feedback!

P.S. I'm not subscribed to the list, so please Cc: me, thanks!

Implement bash URL completion from remote repos

* tools/client_side/bash_completion
   add remote svn ls for file/subdirectory completion
   complete repository names listed within ~/.svn_repos

Received on 2012-07-30 11:58:50 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.