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

Re: Error: Working copy locked when using externals

From: Stefan Küng <tortoisesvn_at_gmail.com>
Date: Thu, 23 Oct 2008 21:50:05 +0200

Robin Guest wrote:
> 2008/10/23 Stefan Küng <tortoisesvn_at_gmail.com
> <mailto:tortoisesvn_at_gmail.com>>
>
> You have a versioned folder named c:\test\bin, but you also have an
> external folder c:\test\bin. That's not possible, that's why you get
> that error.
>
> You have to put your externals in a subfolder of a versioned folder.
>
>
> Thanks Stefan, I wondered as much. But I'm struggling to get my head
> round it. Is it just that I've set up my externals wrong, or is my
> directory structiure fundamentally compatible with externals?
>
> Because it's not just c:\test\bin, c:\test\bin\Bespoke is also both a
> version and an external folder. And this folder simply HAS to contain
> files from both the versioned and the external project, otherwise the
> development will not function when it is deployed. The projects are
> effectively plugins which are loaded by the app from files in the
> Bespoke folder. If these files are in a subfolder the plugins simply
> won't get loaded!

But that's not possible. One folder cannot contain files from different
repositories or different repository folders. You can not mix files into
one folder.

> Having a common project which is always at the latest version without
> having to manually merge revisions static copies belonging to hundreds
> of separate projects, every time each is updated is my team's
> development policy, and has been for 10.5 years (in SourceSafe up until
> now). And I cannot think of any way of doing this in subversion without
> unrevisioned (HEAD) externals.
>
> So when you say "You have to put your externals in a subfolder of a
> versioned folder", how do I do this without having to move the common
> files into subfolders instead of where they belong?

I'm sorry, but that's not possible. You must put the externals into
their own subfolders. Subversion is based on folders, it's not possible
to have externals with only files (at least not yet: Subversion 1.6 will
allow file externals, but these too will have some restrictions).

You have to change your folder layout to make the externals work.

Stefan

-- 
       ___
  oo  // \\      "De Chelonian Mobile"
 (_,\/ \_/ \     TortoiseSVN
   \ \_/_\_/>    The coolest Interface to (Sub)Version Control
   /_/   \_\     http://tortoisesvn.net

Received on 2008-10-23 21:50:21 CEST

This is an archived mail posted to the TortoiseSVN Users mailing list.