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

Re: Split the functions of `cvs update'?

From: Jim Blandy <jimb_at_savonarola.red-bean.com>
Date: 2000-10-27 17:52:29 CEST

Karl and Ben have put together an `svn status' command which uses one
line per interesting file, the way `cvs status' always should have.
It looks great to me; I think it does what you want.

It would be nicer to have it be a straightforward extension of the
`cvs update' output format, but the filename does need to come at the
end (following ls's example).

In the future, of course, this will probably be refined not to waste
columns reserving space for large version numbers that don't appear
(hmm, or maybe fixed-width fields are better), to say "(r none)" in a
way that creates less noise to tell us nothing, etc. But those are

One idea I had in my command-line notes was a "script" prefix for
commands --- it could be a global flag, too --- which adjusts the
syntax of the output for reliable parsing by scripts. Colon-separated
fields, simpler argument parsing, or whatever folks feel is useful.

------- Start of forwarded message -------
To: dev@subversion.tigris.org
Subject: `svn status' details
From: Ben Collins-Sussman <sussman@newton.collab.net>
Date: 24 Oct 2000 17:45:22 -0500
Message-ID: <86vguhamf1.fsf@newton.collab.net>

Implemented `svn status' command. Here are some details, especially
for people thinking about user interfaces. (Output is quite terse
right now, just as Karl likes it. :))

The output format is

<local_ver> (r <repos_ver>) <flag> <name>

...where <flag> is one of {A, D, M, -} if the dirent is marked for
(A)ddition, marked for (D)eletion, locally (M)odified or (-)

Here are some examples:

[sussman@newton:~]$ ./svn status t1/iota
1 (r none) - t1/iota

[sussman@newton:~]$ ./svn status t1/A/D/gamma
1 (r none) M t1/A/D/gamma

[sussman@newton:~]$ ./svn status t1/A/D
1 (r none) - t1/A/D

Notice in the last example that we're getting the status of a
*directory*. Yummy.
------- End of forwarded message -------
Received on Sat Oct 21 14:36:13 2006

This is an archived mail posted to the Subversion Dev mailing list.