You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Daniel Shahaf <d....@daniel.shahaf.name> on 2019/11/07 20:25:53 UTC
'svn info --show-item' doesn't print defaulted values
Consider this:
[[[
% svn info INSTALL | grep Depth
% svn info --show-item=depth INSTALL
%
]]]
Should the second command print "infinity" instead?
Cheers,
Daniel
P.S. Aside: --show-item=schedule doesn't exist. Haven't checked whether
any other fields are not selectable by --show-item..
Re: 'svn info --show-item' doesn't print defaulted values
Posted by Branko Čibej <br...@apache.org>.
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