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

Re: feature request: svn switch alias

From: Kenneth Porter <shiva_at_sewingwitch.com>
Date: 2005-04-15 09:07:28 CEST

--On Thursday, April 14, 2005 3:20 PM +0200 Mage <mage@mage.hu> wrote:

>># change into the dir you want as base
>> $ export R=`svn info | grep URL | awk -F ": " '{ print $2; }'`
>> $ svn sw $R/main
>> $ svn sw $R/test
>> $ svn sw $R/branch/mage
>> You could also put the export thingy into a bash/.. script and source it.
> I can't put in the profile because I use several subversion repositories
> and work on 3-4 project simultaneously.
> Exporting a variable every time is not faster than copy-paste from svn
> info.

Looks like you could write a script or alias to do the svn/grep/awk and
then invoke the script via backticks. Not as efficient (since it must be
executed for each invocation) and not portable to Win32 clients.

To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Apr 15 09:11:51 2005

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.