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

Re: [PATCH] bash URL completion

From: Nate <nmeier.id_at_gmail.com>
Date: Thu, 10 Aug 2017 09:02:42 -0700 (PDT)

Nice! I was looking at doing the same thing!

*Do you have the full completion code that you could post directly? (not
just the DIFF?)*

Thanks in advance!

On Friday, July 27, 2012 at 3:31:51 AM UTC-6, Gerlando Falauto wrote:
>
> 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 2017-08-11 07:42:44 CEST

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