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

Automatic switch of a directory?

From: Russ Lewis <webmaster_at_villagersonline.com>
Date: 2005-08-19 19:13:28 CEST

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
Received on Fri Aug 19 19:33:21 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.