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

Re: svn status and svn:externals

From: SteveKing <stefan.kueng_at_wagner-group.ch>
Date: 2005-08-15 13:57:00 CEST

Gareth Bryan wrote:

> Appologies if this is an RTFM question (I have, but can't spot the answer)...
>
> What is the reason for the status command showing 'X' for (external)
> subdirectories but showing normal when the command is run directly on
> that subdir?
>
> To clarify, assume that ./lib/thirdParty is external (in my case diff
> project in same repos)
>
> 'svn status ./lib' returns:
>
> X lib/thirdparty

That means the folder 'thirdparty' is included from an external URL.

> whereas 'svn status ./lib/thirdparty' returns nothing?

The folder 'thirdparty' itself represents a complete (different) working
copy of its own. So the status is 'normal' (if the folder hasn't been
modified, removed, switched, ...).

> Using the API (javahl in my case), the API equiv of the second command
> returns SVNStatusKind.NORMAL when I was naively expecting
> SVNStatusKind.EXTERNAL?
>
> Is the only way to determine whether or not a directory path is
> external to run a status command on its parent directory?

Be careful! Just checking the parent folder won't work every time.
Imagine you have
folder <-- here is the svn:external set, path as 'subfolder\ext'
folder
   subfolder
     ext <-- this is the folder included with externals

if you just check 'subfolder', you could get no status at all because
'subfolder' could be unversioned!

Stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Aug 15 14:03:21 2005

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.