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

Re: 'svn info --show-item' doesn't print defaulted values

From: Branko Čibej <brane_at_apache.org>
Date: Fri, 8 Nov 2019 03:07:06 +0100

On 07.11.2019 21:25, Daniel Shahaf wrote:
> Consider this:
>
> [[[
> % svn info INSTALL | grep Depth
> % svn info --show-item=depth INSTALL
>
> %
> ]]]
>
> Should the second command print "infinity" instead?

Files don't have depth, printing "infinity" would be wrong. The output
is empty on purpose. We _could_ invent a new depth keyword for this
case, if it's more convenient for parsing.

> P.S. Aside: --show-item=schedule doesn't exist. Haven't checked whether
> any other fields are not selectable by --show-item..

In this particular case there's overlap between 'status' and 'info', and
'status' returns more details in the first several columns of its output
than 'info' could.

-- Brane
Received on 2019-11-08 03:07:09 CET

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.