in reply to cvs_stat

I'm not sure about your cvs ... but it doesn't quite work here. Here's a patch:

--- cvs_stat.old 2005-01-22 14:58:27.000000000 -0700 +++ cvs_stat 2005-01-22 15:03:21.000000000 -0700 @@ -23,7 +23,7 @@ printf( '%27s: %s'."\n", '?', $1); next; } - if (/^cvs server: Examining (.*)$/) { + if (/^cvs (?:server|status): Examining (.*)$/) { $dir = $1; } if (/^File: (.*[^ ])\s+Status: (.*)$/) {
Here, cvs stat says "cvs status: Examining", not "cvs server: Examining".

Next steps in cleaning this up are: eliminating the annoying "./" prefix for files in the current directory (debatable - maybe that's just me), and adding the dir prefix for the unknown files.

Replies are listed 'Best First'.
Re^2: cvs_stat
by aufflick (Deacon) on Jan 24, 2005 at 04:02 UTC
    I'll apply that - must be a different version of cvs.

    I don't get a ./ prefix for the current directory, and I _do_ get the dir prefix for new and missing files (that's why the script keeps track of the dir seperately).

    Maybe your cvs output is quite different - what version do you have?

      Here's the version:

      $ cvs -v Concurrent Versions System (CVS) 1.11.2 (client/server) Copyright (c) 1989-2001 Brian Berliner, david d `zoo' zuhn, Jeff Polk, and other authors CVS may be copied only under the terms of the GNU General Public Licen +se, a copy of which can be found with the CVS distribution kit. Specify the --help option for further information about CVS

      I guess we can't always count on cvs being cvs ;-)