01: // CvsUpdateHandler.java
02: // $Id: CvsUpdateHandler.java,v 1.3 1998/01/22 14:23:24 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 CvsUpdateHandler extends UpdateHandler 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: if (entry == null)
16: cvs.createFileEntry(stamp, filename, status);
17: else
18: entry.setStatus(stamp, status);
19: }
20:
21: CvsUpdateHandler(CvsDirectory cvs) {
22: this.cvs = cvs;
23: this.stamp = System.currentTimeMillis();
24: }
25: }
|