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

Re: Externals for a single file - usage?

From: Neil Trodden <neil.trodden_at_gmail.com>
Date: Wed, 1 Apr 2009 22:02:59 +0100

"The path to the file external must be in a working copy that is already
checked out. While directory externals can place the external directory at
any depth and it will create any intermediate directories, file externals
must be placed into a working copy that is already checked out."
I just don't understand this at all. I have a working copy of my project
checked out, I've also added the bin folder in my web project into svn and
it still doesn't work. Am I supposed to have a separate checkout of my
library on my machine and then put the url to *that* as the path to the
external? Surely the problem with that is that the path on my machine will
be different to the path needed for my co-workers and we'll keep overwriting
each others external properties when we check in?

2009/4/1 Bob Archer <Bob.Archer_at_amsi.com>

> From the release notes:
>
>
>
> If the URL in a svn:externals description refers to a file, it will be
> added into the working copy as a versioned item.
>
> There are a few differences between directory and file externals.
>
> - The path to the file external must be in a working copy that is
> already checked out. While directory externals can place the external
> directory at any depth and it will create any intermediate directories, file
> externals must be placed into a working copy that is already checked out.
> - The file external's URL must be in the same repository as the URL
> that the file external will be inserted into; inter-repository file
> externals are not supported.
> - While commits do not descend into a directory external, a commit in a
> directory containing a file external will commit any modifications to the
> file external.
>
> The differences between a normal versioned file and a file external.
>
> - File externals cannot be moved or deleted; the svn:externals property
> must be modified instead; however, file externals can be copied.
>
> Other facts.
>
> - A file external shows up as a X in the switched status column.
>
>
>
>
> ------------------------------
>
> *From:* Neil Trodden [mailto:neil.trodden_at_gmail.com]
> *Sent:* Wednesday, April 01, 2009 4:26 PM
> *To:* Bob Archer
> *Subject:* Re: Externals for a single file - usage?
>
>
>
> I'm not sure I understand. Do you mean don't add the external to the
> working copy but do it directly in the repository?
>
> 2009/4/1 Bob Archer <Bob.Archer_at_amsi.com>
>
> From what I have read about the file level externals you need the project
> with the external in it check out in a WC and there is some client side
> stuff that goes on there.
>
>
>
> BOb
>
>
>
>
> ------------------------------
>
> *From:* Neil Trodden [mailto:neil.trodden_at_gmail.com]
> *Sent:* Wednesday, April 01, 2009 1:10 PM
> *To:* users_at_subversion.tigris.org
> *Subject:* Externals for a single file - usage?
>
>
>
> The need to use external to bring in a single file to my working copies
> arose today and fortunately this was implemented in 1.6 - which I've now
> upgraded to.
>
>
>
> The problem I have is that I still get an error when updating with my new
> external property set. I'm using the same format I use for bringing in
> external folders but perhaps I need to do something else? I'm afraid the
> latest version of the svnbook only mentions that single file externals are
> possible but no specifics on implementation.
>
>
>
> I have a web application checked out as a working copy. From the root of
> that checkout, I have a folder called Website/bin into which I wish to drop
> a shared library file into. The bin folder itself is not in source control
> but it's parent "Website" is.
>
>
>
> So the file I want is:
>
>
>
> svn://ls1/LVGSharedLibrary/tags/stable/LVGLibrary/bin/Release/LVGLibrary.dll
> - which is a valid url - and it needs checking out into the folder
> "Website\Bin" relative to my working copy
>
>
>
> I've added the following line to properties for the root of my working
> copy:
>
>
>
> svn://ls1/LVGSharedLibrary/tags/stable/LVGLibrary/bin/Release/LVGLibrary.dll
> Website/Bin/LVGLibrary.dll
>
>
>
> ..and it fails.
>
>
>
> Am I doing something wrong?
>
>
>
>
> --
> Neil Trodden
>
>
>
>
> --
> Neil Trodden
>

-- 
Neil Trodden
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1510729
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-04-02 14:11:52 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.