views:

44

answers:

1

I am working with a c++ codebase using rcs repository (agh, old I know), during major code changes, I modify a lot of files, which I sometimes lose track of. So I would like to have a small script which will list the files that are different (those that I changed) from files in the repository. It is sort of unrealistic to do rcsdiff on each file. Assume that all files are in the same directory. Is there a small script or alias that will list all the files I have modified?

thanks

+1  A: 

Wow.
RCS is designed for source control of a single file.
It is rarely used directly. CVS is a system that is layered ontop of RCS to extend the functionality to a bunch of files (ie a project).

You could do it in the shell with:

tcsh
foreach a ( `ls *.cpp` )
  echo ${a}
  echo "=============================================================="
  rcsdiff ${a}
  echo "=============================================================="
  echo
  echo
  echo
end

If you had been using cvs I would suggest using tags:
Tag before you start modifying and then tag at regular check points.

cvs tag <startChangeTag>

Then you can compare any of the files against the the tagged version.

Martin York
nope only using rcs
vehomzzz
I like this solution, however, i don't want to printout files that haven't been modified.
vehomzzz
by adding the -q flag you supress any extra noise
Martin York