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

Re: PATCH: column alignment in 'svn list -v' and 'svn status -v'

From: Greg Stein <gstein_at_lyra.org>
Date: 2003-10-27 22:36:58 CET

On Fri, Sep 19, 2003 at 07:48:32PM +0100, Julian Foad wrote:
>...
> Branko said that that there should be some indication that the username
> is truncated. This patch does not address that. Is there a good reason
> for it to be truncated while the other fields are not? I suppose long
> user names are quite common and long file sizes or revision numbers are
> not. But shouldn't it be consistent with "svn status"? Should both
> "list" and "status" truncate long user names ... and indicate that they
> are truncated? That's for a separate patch.

I think the only reason for truncation is to keep the columns aligned.
Since you have 12 characters in there, I'd say use this algorithm:

  if len(name) <= 12:
    printed_name = name
  else:
    printed_name = name[:9] + '...'

And that said, I agree that both list and status should use the same
behavior.

Cheers,
-g

-- 
Greg Stein, http://www.lyra.org/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Oct 27 22:38:19 2003

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.