You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Simon McClenahan <sm...@healthcompartners.com> on 2004/03/12 16:06:44 UTC

Bash URL completion

Has anyone figured out how to do Subversion URL completion in bash (or any other shell)? That would make users quite happy when the hierarchy gets a bit deep, especially when using file system based URL's (file:// and svn+ssh://)

- Simon

--------------------------
NOTE:  This message and any included attachments are from HealthCom Partners, LLC and are intended only for the addressee(s). The information contained herein may include trade secrets or privileged or otherwise confidential information. Unauthorized review, forwarding, printing, copying, distributing, or using such information is strictly prohibited and may be unlawful. If you received this message in error, or have reason to believe you are not authorized to receive it, please promptly delete this message and notify the sender by e-mail.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org


Re: Bash URL completion

Posted by Michael McDaniel <su...@autosys.us>.
I use an environment variable for the base path.


NT client
---
D:\misc\src> set foo=svn+ssh://192.168.0.34/var/svn
D:\misc\src> svn checkout %foo%/test1
A test1\f1.c
A test1\f2.c
...
Checked out revision 7.


Linux client (bash shell)
---
$ cd ~/misc/src
$ export foo=svn+ssh://192.168.0.34/var/svn
$ svn checkout ${foo}/test1
A test1/f1.c
A test1/f2.c
...
Checked out revision 7.


(probably want the variables in a config file, though, rather than typing 
 on the command line)

~Michael


On Fri, 12 Mar 2004, Simon McClenahan wrote:
> Date: Fri, 12 Mar 2004 10:06:44 -0600
> From: Simon McClenahan <sm...@healthcompartners.com>
> To: "Subversion Users (E-mail)" <us...@subversion.tigris.org>
> Subject: Bash URL completion
> 
> Has anyone figured out how to do Subversion URL completion in bash (or any other shell)? That would make users quite happy when the hierarchy gets a bit deep, especially when using file system based URL's (file:// and svn+ssh://)
> 
> - Simon
> 
> --------------------------
> NOTE:  This message and any included attachments are from HealthCom Partners, LLC and are intended only for the addressee(s). The information contained herein may include trade secrets or privileged or otherwise confidential information. Unauthorized review, forwarding, printing, copying, distributing, or using such information is strictly prohibited and may be unlawful. If you received this message in error, or have reason to believe you are not authorized to receive it, please promptly delete this message and notify the sender by e-mail.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
> 
> 
> 
> 
> 
> 

---
http://autosys.us  http://autosys.us/blog/  http://oregonprivacy.org  


!DSPAM:40529328107301920416770!



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Bash URL completion

Posted by Gavin Kistner <ga...@refinery.com>.
On Mar 12, 2004, at 9:21 AM, Ben Collins-Sussman wrote:
> But to do URL completion, your shell would have to be running 'svn ls
> URL' under the hood, doing a network request every time you hit tab!  I
> guess that would be pretty neat, if a bit slow.

In the general case it would, but when you're already in a WC couldn't 
it peek inside .svn and do something logical?



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Bash URL completion

Posted by Ben Collins-Sussman <su...@collab.net>.
On Fri, 2004-03-12 at 10:06, Simon McClenahan wrote:
> Has anyone figured out how to do Subversion URL completion in bash (or
> any other shell)? That would make users quite happy when the hierarchy
> gets a bit deep, especially when using file system based URL's
> (file:// and svn+ssh://)
> 

We already have completion on svn subcommands:

$ cat ~/.bash_profile | grep svn
if [ -f ~/projects/svn/tools/client-side/bash_completion ];  then
  source ~/projects/svn/tools/client-side/bash_completion

But to do URL completion, your shell would have to be running 'svn ls
URL' under the hood, doing a network request every time you hit tab!  I
guess that would be pretty neat, if a bit slow.




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org