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

Fwd: 'svn status' bite-size task?

From: David Mankin <mankin_at_ants.com>
Date: 2002-11-07 09:23:42 CET

[I always forget to cc the list. Sorry.]

On Tuesday, November 5, 2002, at 10:30 PM, Justin Erenkrantz wrote:
> Therefore, I'd like to see:
> svn status --conflicted
> svn status --missing
> svn status --unversioned
> svn status --modified
> and any other long options as desired.
> Anyone feel lucky? -- justin

I've been using cvsu.pl lately and it implements an interface, which
has grown on me...

cvsu --types=[^]LIST
where LIST is any combination of status letters, or a negation of
status letters when preceded by carat. (You'd still have to escape the
^, Justin (what shell is that?). And I always have to escape the ? for
unversioned files.)

But I really like how flexible it is. It also offers a --find flag
which removes anything other than the filename from the command line.
(Sort of the opposite of ls -l.) With --types and --find, I can whip up
shell scripts and useful command-line concoctions to do whatever I want
with my files. Very nice. (a --print0 flag would help avoid trouble
with files with spaces in their names.)

Anyone besides me like this better? or should they both be implemented?

Here's the --help for cvsu:
   --local Disable recursion
   --explain Verbosely print status of files
   --find Emulate find - filenames only
   --short Don't print paths
   --ignore Don't read .cvsignore
   --messages List known file types and long messages
   --types=[^]LIST Print only file types [not] from LIST
   --batch=COMMAND Execute this command on files
   --help Print this usage information
   --version Print version number
Abbreviations and short options are supported

And here's the --messages output:
Recognizable file types are:
     . Known directory
   * ? Unlisted file
   * A Newly added
     C CVS admin directory
   * D Unlisted directory
     F Up-to-date file
   * G Result of merge
   * H Hard link
     L Symbolic link
   * M Modified file
   * O Older copy
   * R Removed file
   * S Special file
   * U Lost file
   * X Lost directory
* indicates file types listed by default

And more info about cvsu:
# cvsu - do a quick check to see what files are out of date.
# Initially written by Tom Tromey <tromey@cygnus.com>
# Rewritten by Pavel Roskin <proski@gnu.org>
Available at:
module: cvsutils

To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Nov 7 09:26:16 2002

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