subversion-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Branko Čibej <br...@apache.org>
Subject Re: truncated author names in 'svn ls -v' output
Date Mon, 26 Nov 2018 03:33:05 GMT
On 26.11.2018 04:15, Daniel Shahaf wrote:
> Branko Čibej wrote on Sun, 25 Nov 2018 23:28 +0100:
>> On 25.11.2018 18:42, Branko Čibej wrote:
>>> On 25.11.2018 11:58, Daniel Shahaf wrote:
>>>> Branko Čibej wrote on Sun, 25 Nov 2018 06:06 +0100:
>>>>> $ svn ls --verbose --human-readable
>>>>> 1847281 stsp                  Nov 23 16:04 ./
>>>>> 1716820 rhuijben         175B Nov 27  2015 .editorconfig
>>>> 'svn info' doesn't print file sizes at all.  If it did, it could take
>>>> the new flag too.
>>> svn info -H --show-item=size? :)
>> But seriouisly '--human-readable' and '--show-item' would be incompatible.
> I don't see why.  It would make perfect sense to have:
> .
>     % svn info --human-readable --show-item=repos-size
>     42KiB
>     % 
> .
> for interactive usage.

Easily added if we want it. Note that when we use the whole unit, not
just its magnitude prefix (KiB vs. K), there should be a space between
the number and the unit; so, "42 KiB" not "42KiB". And that's what we do
now in the normal 'svn info' output. Incidentally that makes parsing the
"human-readable" output in scripts easier, too ...

Just now I committed r1847448 which adds a function that does the same
conversion in base-10 units. However I've not yet wired it into the
options and commands.

-- Brane


Mime
View raw message