Package org.tmatesoft.hg.internal

Examples of org.tmatesoft.hg.internal.FileChangeMonitor


        bookmarks = bm;
      } else {
        bookmarks = Collections.emptyMap();
      }
      if (bmFileTracker == null) {
        bmFileTracker = new FileChangeMonitor(all);
      }
      bmFileTracker.touch(this);
    } catch (HgInvalidControlFileException ex) {
      // do not translate HgInvalidControlFileException into another HgInvalidControlFileException
      // but only HgInvalidFileException
View Full Code Here


        if (c.size() > 0) {
          activeBookmark = c.get(0);
        }
      }
      if (activeTracker == null) {
        activeTracker = new FileChangeMonitor(active);
      }
      activeTracker.touch(this);
    } catch (HgIOException ex) {
      throw new HgInvalidControlFileException(ex, true);
    }
View Full Code Here

        if (errors != null) {
          repo.getLog().dump(getClass(), Warn, "Syntax errors parsing %s:\n%s", ignoreFile.getName(), Internals.join(errors, ",\n"));
        }
      }
      if (ignoreFileTracker == null) {
        ignoreFileTracker = new FileChangeMonitor(ignoreFile);
      }
      ignoreFileTracker.touch(this);
    } catch (IOException ex) {
      final String m = String.format("Error reading %s file", ignoreFile);
      throw new HgInvalidControlFileException(m, ex, ignoreFile);
View Full Code Here

    File localTags = repo.getRepositoryFile(HgLocalTags);
    if (localTags.canRead() && localTags.isFile()) {
      read(localTags, localToName, localFromName);
    }
    if (localTagsFileMonitor == null) {
      localTagsFileMonitor = new FileChangeMonitor(localTags);
    }
    localTagsFileMonitor.touch(this);
  }
View Full Code Here

    File globalTags = repo.getRepositoryFile(HgTags); // XXX replace with HgDataFile.workingCopy
    if (globalTags.canRead() && globalTags.isFile()) {
      read(globalTags, globalToName, globalFromName);
    }
    if (globalTagsFileMonitor == null) {
      globalTagsFileMonitor = new FileChangeMonitor(globalTags);
    }
    globalTagsFileMonitor.touch(this);
  }
View Full Code Here

TOP

Related Classes of org.tmatesoft.hg.internal.FileChangeMonitor

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.