Laszlo Kishalmi <laszlo_kishalmi@epam.com> writes:
> It seems that the command line subversion client cuts the author at
> 8th character in its output.
> This command would be perfect to generate a list of the files in the
> repository with the current author.
> We have several colleagues here with the same long forename, so I have
> to collect this info in an other way.
[I've switched this thread to dev@.]
This has long bothered me too. In 'svn status' output, we print 12
columns worth of username. But in 'svn ls', we only print 8 columns
of username.
Why the difference? I'm not sure. Maybe we were trying to be similar
to some old versions of Unix 'ls'? In any case, it's annoying now.
Our own committers jerenkrantz and jszakmeister get cut off in 'ls -v'
output, for example.
It would be an incompatible API change to go to 12 as the default for
'ls -v' now. But it would be okay to add a run-time configuration
parameter to control this width. How would people feel about that?
Specifically:
A new section "[output]" in ~/.subversion/config, with a new parameters
"[ls-username-width]" and "[status-username-width]", thus:
### Section for controlling output formats of the command-line client.
[output]
# Show up to this many columns of username in 'svn ls -v' output.
# ls-username-width = 8
# Show up to this many columns of username in 'svn status' output.
# status-username-width = 12
I'm definitely open to more elegant solutions, by the way. It's
somewhat displeasing to have to use two different parameter. Really
there should only be one, "username-width". But the trouble is
compatibility: right now Subversion uses two different default widths,
one for ls and one for status. Since our internal implementation of
configurable control would need to reflect these separate defaults, we
are pretty much forced (I think?) to use two separate parameters.
-Karl
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Jan 12 18:48:52 2005