tags:

views:

206

answers:

4

Is there any simple way to show only the files in my repository that have been locally added, removed, or modified? I know that I can type "cvs stat" and look through the list of files, but that is tedious and error-prone. I am wondering if there is an easier way. I am using CVS 1.11.17, in case that matters.

+2  A: 

You can get a short listing of differences using the cvs diff command:

cvs -q diff --brief
martin clayton
+4  A: 

A 'dummy' update will give you this information.

cvs -qn update
Charles Bailey
A: 

Pipe it to grep!

cvs -Q status | grep -i locally
atxryan
I tried that, and I didn't really like it. I would like to see the path for the changed files, and not just the filenames. I tried cvs stat 2>/dev/null |grep Local -B1 -A4 |grep -vE "^$" and it was a little better, but kind of messy and quirky.
mikez302
A: 

Here is nmake-perl script list modified files, it is based on aforesaid cvs update -qn:

DIRS=\
  c:\project1\
  c:\project2

all: $(DIRS)
  !cd $? & cvs -qn update | perl -ne "s!\/!\\!g;print '$?\\'.qq($$1) if /^M (.*)/s;"
vtrz