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

RE: relative paths in externals ?

From: Ian Brockbank <Ian.Brockbank_at_wolfsonmicro.com>
Date: 2004-08-27 10:31:33 CEST

Hi Didier,

> Suppose I have a project that contains the following directories:
> proj/common
> proj/dir1
> proj/dir2
> ...
> I'd like to have a 'common' subdir in all 'dir[0-9]+'
> directories, pointing
> (in the svn externals sense) to proj/common. In other words
> I'd like to be
> able to do:
> for i in wc/dir[0-9]* ; do
> cd wc/$i
> svn mkdir common
> svn propset svn:externals ../common common
> done
> ../common should be seen as a path relative to the current
> directory, in the
> current repository of course. This doesn't seem to be
> possible. Is there a
> chance to get this one day ?

At present svn:externals must be absolute paths. There has been a patch
submitted to allow relative paths, but as far as I know it hasn't yet
been checked in - it's certainly not in 1.1.

BTW You don't need to create the directory in the loop - the checkout of
the svn:externals will create it for you. In fact if you create the
directory, the checkout of the external will fail because the directory
you created is in the way.


Ian Brockbank
Senior Applications Software Engineer
e: ian.brockbank@wolfsonmicro.com / apps@wolfsonmicro.com
scd: ian@scottishdance.net
t: +44 131 272 7145
f: +44 131 272 7001

To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Aug 27 10:32:08 2004

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.