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

Re: Variable expansion in svn:externals

From: Keith Richling <kgr_at_ftc.agilent.com>
Date: 2003-06-09 20:47:17 CEST

Garrett Rooney wrote:
>
> Keith Richling wrote:
>
> >I would like to set up a path in a repository that has an svn:externals
> >property that points to a different value depending on who is performing
> >the check out.
> >
> >I have tried having an svn:externals with a value of "xml
> >svn+ssh://localhost/home/svn/some-project/${LOGNAME}/head"
> >
> >When I check out the directory that has the svn:externals value, I get
> >the following error message:
> >
> >../subversion/libsvn_fs/tree.c:186: (apr_err=160013)
> >svn: Filesystem has no item
> >svn: file not found: transaction `9f', path
> >`/accomplishments/${LOGNAME}/head'
> >
> >
> >I am guessing that this is because variable expansion did not occur on
> >${LOGNAME}.
> >
>
> Umh, what makes you think that some kind of variable expansion would
> occur on the externals value? Where would the variable's value come
> from anyway?

I did not think that it would work, but I thought that I would ask. I
know that CVS does not do this either, but their documentation alludes
to the possibility of it working. In the CVS documentation the variable
values are passed into CVS through the -s command line option.

>
> >Is there a way to get svn to do this type of user specific check out?
> >
>
> Not that I know of, and honestly it seems like a bad idea. Why do you
> want people to get different results for checking out the same thing?
> If they want somethign different, why not give them a different thing to
> check out?
>
> -garrett

The reason that I want them to get different items is because most of
the items are shared, with only one directory containing user specific
data. This data is user specific. It may be configuration files or
some piece of data that only a specific user should have access to. For
my case where most of the data are shared, it would be easier if I could
specify one svn:externals on a single repository instead of creating 100
different repositories with numerous svn:externals (most of which point
back to the common data).

-- 
Keith Richling                     |  Agilent Technologies
Email: keith_richling@agilent.com  |  MS/72
Voice: (970) 288-7903              |  4380 Ziegler Road
  Fax: (970) 288-6580              |  Fort Collins, CO 80525-9790
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Jun 9 20:48:18 2003

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.