The output looks like that:
% cvsls HEAD admin tools
cvs server: Listing admin
admin/bldlog.pl (1.4)
admin/cdstage.sh (1.42)
admin/cronbuild (1.39)
admin/env.build (1.23)
admin/envar.readme (1.1)
admin/makeall.sh (1.18)
admin/ntbenv.bash (1.1)
admin/ntbuild.bash (1.6)
cvs server: Listing tools
tools/Makefile (1.8)
tools/ermbld.csh (1.5)
tools/ermbld.sh (1.2)
tools/genDriverCmd.pl (1.2)
tools/genUnMaster.pl (1.1)
Here is the script itself. It is intentionally not fancy so that people can
add other command line parsing if desired.
------------------- cut here ------------------------------------------
#!/bin/sh
# lists files and directories in the module(s) on the server without
# checking them out
# cvsls BranchName modules...
# for main trunk use 'cvsls HEAD modules...'
branch=$1; shift
cvs rdiff -s -D 01/01/1970 -r $branch "$@" 2>&1 \
| sed -e 's/File.//' \
-e 's/is new; current revision./ (/' \
-e 's/(\([0-9][\.0-9]*\)/(\1)/' \
-e 's/cvs server: Diffing/cvs server: Listing/'
------------------- cut here ------------------------------------------
Eugene.
> [...]
> cvs rdiff -s -D 01/01/1970 -r $branch "$@" 2>&1 \
> | sed -e 's/File.//' \
> -e 's/is new; current revision./ (/' \
> -e 's/(\([0-9][\.0-9]*\)/(\1)/' \
> -e 's/cvs server: Diffing/cvs server: Listing/'
This is a really nice trick. I've been looking for such a feature for a
long time. But when I use the date "01/01/1970" as shown above, I will
get the error message:
%> cvs rdiff -s -D 01/01/1970 -r HEAD Tools
cvs [rdiff aborted]: Can't parse date/time: 01/01/1970
with cvs 1.10.5 _and_ 1.10.8 on different systems.
"cvs rdiff -s -D 01/02/1970 -r HEAD Tools" or later dates seems to work.
^^
Does anybody know if this is a bug or a feature ?
Lars
-------------------------------------------------------------------
aerodata Flugmesstechnik GmbH Email sch...@aerodata.de
Lars-Christian Schulze WWW www.aerodata.de
Hermann-Blenk-Str. 36 Voice +49 531 2359-188
D-38108 Braunschweig Fax +49 531 2359-158