01: // CvsCommitHandler.java
02: // $Id: CvsCommitHandler.java,v 1.5 1998/10/27 16:15:16 bmahe Exp $
03: // (c) COPYRIGHT MIT and INRIA, 1997.
04: // Please first read the full copyright statement in file COPYRIGHT.html
05:
06: package org.w3c.cvs;
07:
08: class CvsCommitHandler extends CommitHandler implements CVS {
09: CvsDirectory cvs = null;
10: long stamp = -1;
11:
12: void notifyEntry(String filename, int status) {
13: // Add an entry for the file:
14: CvsEntry entry = cvs.getFileEntry(filename);
15: //added there for testing (FIXME?)
16: //stamp = System.currentTimeMillis();
17: if (entry == null)
18: cvs.createFileEntry(stamp, filename, status);
19: else
20: entry.setStatus(stamp, status);
21: }
22:
23: CvsCommitHandler(CvsDirectory cvs) {
24: this.cvs = cvs;
25: this.stamp = System.currentTimeMillis();
26: }
27: }
|