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

Re: svn status merges intersected external records into single row

From: Johan Corveleyn <jcorvel_at_gmail.com>
Date: Fri, 30 Jun 2017 22:20:11 +0200

On Fri, Jun 30, 2017 at 7:52 AM, Johan Corveleyn <jcorvel_at_gmail.com> wrote:
> On Fri, Jun 30, 2017 at 4:12 AM, Daniel Shahaf <d.s_at_daniel.shahaf.name> wrote:
>> Johan Corveleyn wrote on Fri, 30 Jun 2017 00:06 +0200:
>>> Summarized, you're saying that with this svn:externals definition:
>>>
>>> ^/dir1/dir1_subdir1 ext/dir1_subdir1
>>> ^/dir1/dir1_subdir2 ext/dir1_subdir2
>>>
>>> (with ext being an unversioned intermediate directory)
>>> running 'svn status' only reports one X line (for 'ext') instead of a
>>> line for each external definition (like it does with other externals):
>>>
>>> X test_repo_root\ext
>>
>> 'ext' is not a file external and is not the root of a directory
>> external, so it shouldn't be printed with status 'X'; therefore this
>> output is a bug.
>>
>> ... Right?
>
> Yeah, the more I think about it, the more I think it's a bug indeed.

Apparently, it's not a bug, but is implemented explicitly this way.

Bert Huijben said the following about it on #svn-dev (irc):

[[[
<Bert> This feature was deliberately designed that way... I spend
quite some time to get that working again in WC-NG.

<Bert> I didn't know about that intermediate dir feature before that work on NG.

<Bert> That 'X' on the intermediate dir is produced to 'not show it as
unversioned dir'. Each and every (dir) external is reported separately
after the primary status output.

<jcorvel> Bert: X-feature ... strange. But the individual externals
below "unversioned" are not reported with 'X'. Is dat normal?

<jcorvel> Do you know why this feature was designed that way? Any way
to find out the rationale behind this? If we wanted to "not show it as
an unversioned dir" we might as well just have suppressed it ...

<Bert> We just don't recurse into unversioned dirs... we only show the root.

<jcorvel> Hm, okay, guess that makes sense from the status-walk logic
side of things ...

<jcorvel> it's still strange to see the unversioned
externals-parent-dir being reported with X ... as a user I'd expect
'X' to show the actual externals roots. Confusing ... but okay
]]]

Andrey, you might be able to parse the externals from the "Performing
status on external ..." lines as a workaround.

-- 
Johan
Received on 2017-06-30 22:20:36 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.