--- /dev/null
+// CvsCommitHandler.java\r
+// $Id: CvsCommitHandler.java,v 1.1 2010/06/15 12:28:48 smhuang Exp $ \r
+// (c) COPYRIGHT MIT and INRIA, 1997.\r
+// Please first read the full copyright statement in file COPYRIGHT.html\r
+\r
+package org.w3c.cvs2;\r
+\r
+class CvsCommitHandler extends CommitHandler implements CVS {\r
+ CvsDirectory cvs = null;\r
+ long stamp = -1;\r
+\r
+ void notifyEntry(String filename, int status) {\r
+ // Add an entry for the file:\r
+ CvsEntry entry = cvs.getFileEntry(filename);\r
+ //added there for testing (FIXME?)\r
+ //stamp = System.currentTimeMillis();\r
+ if ( entry == null ) \r
+ cvs.createFileEntry(stamp, filename, status);\r
+ else\r
+ entry.setStatus(stamp, status);\r
+ }\r
+\r
+ CvsCommitHandler(CvsDirectory cvs) {\r
+ this.cvs = cvs;\r
+ this.stamp = System.currentTimeMillis();\r
+ }\r
+}\r