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

Re: svn status & external definitions

From: Branko Čibej <brane_at_wandisco.com>
Date: Sun, 07 Dec 2014 20:07:59 +0100

On 06.12.2014 14:59, Bert Huijben wrote:
>
>> -----Original Message-----
>> From: Daniel Shahaf [mailto:d.s_at_daniel.shahaf.name]
>> Sent: zaterdag 6 december 2014 12:28
>> To: Daniel Becroft
>> Cc: subversion
>> Subject: Re: svn status & external definitions
>>
>> Daniel Becroft wrote on Tue, Dec 02, 2014 at 14:44:06 +1000:
>>> Hi,
>>>
>>> On a fresh checkout from a repository, an 'svn status' will return the
>>> following:
>>>
>>> X alpha
>>> X beta\B
>>> X beta\C
>>>
>>> These are the folders created by svn:externals properties. No problem
> here.
>>> However, using an 'svn status --ignore-externals' command does not
> change
>>> the output - the external folders continue to be listed.
>>>
>>> The help text for this switch just says '--ignore-externals : ignore
>>> externals definitions'.
>>>
>>> Is this intended behaviour?
>> Not sure..
> Are we looking at a file external or at a directory external?

Doesnt' matter. The status tells you that alpha, beta/B and beta/C are
roots of external working copies. This information is pertinent to the
top-level working copy, not the contents of the external WCs. So, status
is not descending into the external trees; it's effectively just
reporting the contents of svn:externals properties defined in your
top-level working copy.

This becomes clearer in the case where the external tree is actually in
a state where status would have something to report. For example, using
a test setup with an external directory and a locally added file inside it:

    $ svn proplist --verbose
    Properties on '.':
      svn:externals
        ^/top/a ext

By default, "svn status" will descend into the external tree:

    $ svn status
    X ext

    Performing status on external item at 'ext':
    A ext/c/foo

With the added option, it won't:

    $ svn status --ignore-externals
    X ext

But it will report the external definition in the top-level working copy.

-- Brane
Received on 2014-12-07 20:08:32 CET

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.