    001package org.vishia.guiBzr;
    002
    003import java.io.File;
    004
    005/**This class contains the data for one file in a Component and its counterpart in the source archive.
    006 * @author Hartmut Schorrig
    007 *
    008 */
    009public class DataFile
    010{
    011  /**The local path in the component, relative to the archive. */
    012  final String sLocalpath;
    013
    014  /**The real file. */
    015  final File file;
    016
    017  /**Timestamp in archive and of file. If 0 then the file isn't existing in the archive respectively as file.
    018   */
    019  long dateInArchive, dateFile;
    020
    021  /**Type of file:
    022   * <ul>
    023   * <li>chg: modified, changed
    024   * <li>new: not archived yet
    025   * <li>add: added to archive, but not commited yet
    026   * <li>del: removed, not found
    027   * <li>mov: moved or renamed in archive
    028   *
    029   */
    030  String sType;
    031
    032  DataFile(File file, String sLocalpath, String sType)
    033  {
    034    this.file = file;
    035    this.sLocalpath = sLocalpath;
    036    this.sType = sType;
    037    dateFile = file.lastModified();
    038  }
    039}