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

Variable support for external links?

From: Jarkko Jussila <jarkko.jussila_at_gmail.com>
Date: Fri, 18 Apr 2008 12:40:30 +0300

Hi,

 I'm working with rather big SW products based on component SW. Those
components can be re-used between different products. That is why we
have decided to have sw components as separate repository and we
integrate products using external links using scm-repository. We are
working in a multisite environment and we use svnsync/pushmi to speed
up svn usage (some sites/partners/collaborator have very bad network
connections) --> engineers are using several different svn-servers.

So far so good but the problem is that we would like to use same
scm-directory (containing external links) for all sites. That is now
difficult because the server name is different in every site (requires
that we have always site-specific build containing site specific
external links)

So, we can have now site-specific scm-repository like:

# svn pg svn:externals scm

component1 https://svnserver.site1/svnroot/component1/trunk
component2 https://svnserver.site1/svnroot/component2/trunk
component3 https://svnserver.site1/svnroot/component3/trunk
...

With dns we might play so that this would work:
# svn pg svn:externals scm

component1 https://svnserver/svnroot/component1/trunk
component2 https://svnserver/svnroot/component2/trunk
component3 https://svnserver/svnroot/component3/trunk

Every site would have own idea of this svnserver... (svnserver.site1,
svnserver.site2..)

but I'm asking if server name could somehow be a variable like:

# svn pg svn:externals scm

component1 https://$(LOCAL_SVN_SERVER)/svnroot/component1/trunk
component2 https://$(LOCAL_SVN_SERVER)/svnroot/component2/trunk
component3 https://$(LOCAL_SVN_SERVER)/svnroot/component3/trunk
...

Every site could then define that one how they like...

Is this something that can be done now? I tried all kind of ${} $() $
but didn't work...

If not, do you think this is something worth implementing to svn or is
this just my personal problem ;)

/jjj

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-04-18 16:53:15 CEST

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.