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

Re: AW: Find out whether a directory is external

From: Les Mikesell <lesmikesell_at_gmail.com>
Date: Wed, 11 May 2011 10:25:12 -0500

On 5/11/2011 9:29 AM, Markus Schaber 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).

That would be a bad thing to assume in general.

> 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'd consider that accidental and not count on it.

> 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.

That part makes sense.

> 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?

If it is all in the same repository and you want it to be treated
monolithically, why not move it to the layout you want instead of
fighting with externals? Or if the referenced parts are really
separate components, remember that and cd into the relevant directories
when committing component changes.

-- 
   Les Mikesell
    lesmikesell_at_gmail.com
Received on 2011-05-11 17:25:48 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.