Re: "svn list -v" column alignment issue

2019-12-21 Thread Branko Čibej
On 21.12.2019 00:09, Vincent Lefevre wrote:
> Hi,
>
> There's something wrong with "svn list -v" column alignment when
> there are author names with more than 8 characters. For instance,
> with the gcc repository:
>
> [...]
>  279442 jozeflDec 16 12:02 libgcc/
>  278886 jvdelisle  Dec 01 23:29 libgfortran/
> [...]

This is by design, it was a change made in 1.12.

https://subversion.apache.org/docs/release-notes/1.12.html#client-server-improvements

Yes, we realize that this makes simple output parsing harder, but the
alternative -- truncating author names at 8 characters -- was considered
worse.

-- Brane


Re: "svn list -v" column alignment issue

2019-12-21 Thread Daniel Shahaf
Vincent Lefevre wrote on Sat, Dec 21, 2019 at 00:09:09 +0100:
> There's something wrong with "svn list -v" column alignment when
> there are author names with more than 8 characters. For instance,
> with the gcc repository:
> 
> [...]
>  279442 jozeflDec 16 12:02 libgcc/
>  278886 jvdelisle  Dec 01 23:29 libgfortran/
> [...]

As implemented, the width is initially 8 but as soon as a longer name is seen,
subsequent lines will be aligned with that, up to a maximum length of 16.

Do you have a better algorithm to propose?