Marc Poinot wrote:
> Laird Nelson wrote:
> > Additionally, you can get the old version by having your commitinfo
> > script look in ./CVS/Entries; the line with the filename in it will also
> > have its old version.
> On the server side ?
Yes; even in a pserver or rsh context. If your script is being called
in a pserver or rsh context:
1. Its current directory will be something like /tmp/cvs-serv2947
2. The current directory will always have a CVS directory in it
3. The CVS directory in it will always have at least an Entries file
4. The CVS/Entries file will always have at least the lines in it
representing the files that are being committed
5. As part of a standard Entries format, each line will contain the
relative filename, the "old" revision, and some datestamp (whose
semantics I can't recall at the moment). Here's an example:
/ScopeTypes.java/1.1/Wed Jul 12 22:21:05 2000//
If the revision is "0", then the file is being cvs added. If the
revision is negative, e.g. "-1.3", then the file is being cvs removed.
If the revision is anything else, then the file is being committed
normally.
Cheers,
Laird