[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: Fri, 27 Jul 2012 11:31:51 +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:

http://srv1/proj1
svn://srv2/proj2

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!
Gerlando

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

Received on 2012-07-27 11:38:49 CEST

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.