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

Re: truncated author names in 'svn ls -v' output

From: Branko Čibej <brane_at_apache.org>
Date: Mon, 26 Nov 2018 04:33:05 +0100

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
Received on 2018-11-26 04:33:15 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.