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

Re: Find out whether a directory is external

From: Andy Levy <andy.levy_at_gmail.com>
Date: Wed, 11 May 2011 10:42:28 -0400

On Wed, May 11, 2011 at 10:29, Markus Schaber <m.schaber_at_3s-software.com> wrote:
> Hi,
>
>> Von: Markus Schaber [mailto:m.schaber_at_3s-software.com]
>> When I commit several pathes, one of them being an external directory,
> I
>> get an exception:
>> "Are all the targets part of the same working copy?",
>> SVN_ERR_WC_NOT_LOCKED.
>
> Just some more explanation tot he situation:
>
> [In all the following cases, it is assumed that the external directory
> is from the same repository than the main working copy).
>
> I can commit files and directories from inside and outside the external
> directory in the same commit, as long as the external directory itself
> is not mentioned on the list of elements to commit.
>
> I can commit the external directory itself (with and without files and
> directories below the external directory), as long as no file or
> directory outside of the external directory is mentioned on the list of
> elements.
>
> I cannot commit the external directory itself (which has changed
> properties) together with any path in the working copy outside of the
> external directory.
>
> Is there a workaround?

Externals, although they appear to be "in" your WC, are actually not
part of the parent working copy. As a result, anyplace where you are
successfully committing items both in the parent WC and the externals
directory may be a bug, but definitely not "as intended" behavior.

IOW, don't trust it.

You should always commit items inside your external separately from
items outside the external. If your external was sourced from another
repository, you'd have no choice; when it works for externals sourced
from the same repository, it's more chance than "working as designed."

Scroll to the last few paragraphs of
http://svnbook.red-bean.com/nightly/en/svn.advanced.externals.html
Received on 2011-05-11 16:43:38 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.