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

Re: proposal: changelist feature

From: Jonathan Gilbert <o2w9gs702_at_sneakemail.com>
Date: 2006-04-20 18:36:11 CEST

At 02:27 PM 17/04/2006 -0500, Ben Collins-Sussman wrote:
>On 4/17/06, Justin Erenkrantz <justin@erenkrantz.com> wrote:
>> On 4/17/06, Garrett Rooney <rooneg@electricjellyfish.net> wrote:
>> > I basically agree with what Justin said, although I'm not too fond of
>> > putting stuff in parens after the filename like that, I do think it
>>
>> Oh, I agree. I just don't know quite how to better represent it given
>> the constraints on status's output though. -- justin
>>
>
>Heh, that's in fact what perforce does: something like
>
> /some/long/path/to/foo.c - modified XXXX
> /some/other/path/to/bar.c - added XXXX
>
>...where XXXX is the changelist name.
>
>Of course, I absolutely hate this output, because there are no aligned
>columns at all. It's really hard to read. That's why 'svn status'
>shows neatly aligned status codes, and puts the variable-length path
>last.
>
>Unfortunately, adding a changelist-name to the output of 'svn status'
>would mean each line would now have *two* variable-length fields. And
>I guess you guys are right -- it's not worth destroying the
>streaminess of the status command just to show changelist groupings.
>I guess Justin's suggestion is the best we could do.

Perhaps an extra switch could be used to put the changelist names first
instead of last. As long as the list of changelists can itself be
enumerated, it shouldn't be hard to correctly size this new first column,
and the resulting output could be passed to 'sort' for those interested in
grouping by changelist. Of course, the default output should be to put the
changelist last or perhaps even not show it at all. (An alias could be used
to add a --show-changelists flag, without which third-party tools which
wrap the 'svn' utility would only see the changelist output if they knew
about it and were able to handle it.)

Example:

box:/wc> svn st
A foo.c
D bar.c
M qux.c
box:/wc> svn st --show-changelists
A foo.c (changelist "abc123")
D bar.c (changelist "bongo drums")
M qux.c (changelist "abc123")
box:/wc> svn st --show-changelists=sortable
abc123 A foo.c
bongo drums D bar.c
abc123 M qux.c
box:/wc> svn st --show-changelists=sortable | sort
abc123 A foo.c
abc123 M qux.c
bongo drums D bar.c
box:/wc>

Jonathan Gilbert

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Apr 20 18:39:36 2006

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.