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

Re: Confused about svn:externals

From: John <John_at_DMJ-Consultancy.co.uk>
Date: 2006-10-23 15:56:54 CEST

Jeremy Pereira wrote:
>
> On 23 Oct 2006, at 12:06, John wrote:
>
>> Jeremy Pereira wrote:
>>>
>>> On 23 Oct 2006, at 10:53, John wrote:
>>>
>>>> SVN 1.2.3 on SuSE 10.1
>>>>
>>>> [snip]
>>>
>>>
>>> I don't think you can get what you really want using svn externals
>>> since you will end up with a directory in Web Site/Site Root called
>>> index which contains index.php.
>> Can you suggest another way to achieve this?
>
> On Unix you could use symlinks.
That certainly works. However, they need to be manually setup after the
update per your comment on Windoze below.
>
> On Windows, you'd have a problem. You could write a script to copy
> index.php to the right place but it'd have to run manually after every
> update or commit.
sort of a post update hook?

BTW, a command line like

      svn propset svn:externals "Site.Root file:///repos/Web.Site/index" .

sets up to use the files used in the external directory 'index' and puts
them into Site.Root, not Site.Root/index

but if that directory exists from an associated checkout, externals can
not be added and you get the error:

       Site.Root is already a working copy for a different URL

Now, how do we get round that error?

John

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Oct 23 15:56:48 2006

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.