[pushing this back to the dev list]
Philip Martin <philip_martin@ntlworld.com> writes:
> Ben Collins-Sussman <sussman@collab.net> writes:
>
> > Instead, I was thinking of something like:
> >
> > % svn status
> > Repository Revision: 96
> > _ 95 ( * ) ./ac-helpers/install.sh
> > _ 95 ( ) ./ac-helpers/svn-apache.m4
> > _ 95 ( ) ./ac-helpers/svn-macros.m4
> > M 95 ( ) ./autogen.sh
> > M 95 ( ) ./build.conf
> > A 0 ( ) ./buildcheck.sh
>
> I don't think moving the repository version moving to a separate line
> is a good idea. It makes the remaining lines less useful, they don't
> have all the information. Consider, as an example, usage like
>
> % svn status | grep \\.h$
>
> (or Mo's first post in this thread). Scripts that process svn status
> output will also find this form less useful.
Very good point. Hmmm.
> A file can have been modified in both the local directory and the
> repository since the local version was last updated. There are
> *three* version numbers that are of interest: the version in the local
> directory, the last version with a change in the repository, and the
> most recent version in the repository. I think I would want to see
> all three version numbers explicitly in every line, certainly the
> first two. Blank space instead of a number is not a good idea, it
> makes separation into fields harder.
Yes, there are three numbers of interest; but the third number is a
constant. It irks me to always fill a whole column with the same
constant. But as you said, maybe it's worth the parsing benefit.
Maybe something like
% svn status --verbose
_ 95 [ 72] ( 99) ./ac-helpers/install.sh
_ 95 [ 90] ( 99) ./ac-helpers/svn-apache.m4
_ 95 [ *98] ( 99) ./ac-helpers/svn-macros.m4
M 95 [ 95] ( 99) ./autogen.sh
M 95 [ 16] ( 99) ./build.conf
A 0 [ 0] ( 99) ./buildcheck.sh
The first column is the working revision.
The second column, in brackets, is the last revision in which the file
changed. The asterisk is put there whenever this value is greater
than the working revision -- pointing out that it needs to be updated.
The third column, in parens, is the head revision, a constant value.
Thoughts?
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Oct 21 14:36:41 2006