You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Russ Lewis <we...@villagersonline.com> on 2005/08/19 17:13:28 UTC

Automatic switch of a directory?

I find myself using "svn switch" as a very handy way to bring certain 
code libraries or utilities into my other projects.  For instance, I 
have a tool (tracked by SVN) called "dfront" which references another 
tool, "cebu."  What I would do is to create a dummy directory 
dfront/cebu, which just contains a text file that says "remember to svn 
switch this directory to cebu".  Very cool.

However, I'm now finding myself wanting this to happen automatically 
when I check out dfront.  That is, I would like to be able to set a 
special property or something such that each time I check out "dfront", 
it automatically svn switches the "cebu" directory to the right SVN source.

Q1: Is there already some trick to do this that I don't know about?  
Perhaps a way to automatically run a certain script when a directory is 
checked out?  (Yes, I know that that would be problematic if you're 
mixing Windows and Unix boxen.)

Q2: Any thoughts about whether this is a desirable feature in general?  
Do other people do things like this?  If this was automated, what would 
happen if you accidentally created a loop of automatic SVN switching?

Russ Lewis
New (and avid) SVN user

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

Re: Automatic switch of a directory?

Posted by Aaron Wood <wo...@gmail.com>.
On 8/19/05, Russ Lewis <we...@villagersonline.com> wrote:
> However, I'm now finding myself wanting this to happen automatically
> when I check out dfront.  That is, I would like to be able to set a
> special property or something such that each time I check out "dfront",
> it automatically svn switches the "cebu" directory to the right SVN source.

svn:externals?

-Aaron

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