Package org.tmatesoft.hg.repo

Examples of org.tmatesoft.hg.repo.HgDirstate.walk()


    repo = Configuration.get().find("mixed-case");
    // Windows, case-insensitive file system
    final HgInternals testAccess = new HgInternals(repo);
    HgDirstate dirstate = testAccess.createDirstate(false);
    final TreeSet<Path> entries = new TreeSet<Path>();
    dirstate.walk(new HgDirstate.Inspector() {
     
      public boolean next(EntryKind kind, Record entry) {
        entries.add(entry.name());
        return true;
      }
View Full Code Here


    checkKnownInDirstate(testAccess, dirstate, mixedNonMatching, expected);
    //
    // check that in case-sensitive file system mangled names do not match
    dirstate = testAccess.createDirstate(true);
    // ensure read
    dirstate.walk(new HgDirstate.Inspector() {
      public boolean next(EntryKind kind, Record entry) {
        return false;
      }
    });
    Path[] known = testAccess.checkKnown(dirstate, mixedNonMatching);
View Full Code Here

      if (cleanCheckout) {
        // remove tracked files from wd (perhaps, just forget 'Added'?)
        // for now, just delete each and every tracked file
        // TODO WorkingCopy container with getFile(HgDataFile/Path) to access files in WD
        HgDirstate dirstate = new HgInternals(repo).getDirstate();
        dirstate.walk(new HgDirstate.Inspector() {
         
          public boolean next(EntryKind kind, Record entry) {
            File f = new File(repo.getWorkingDir(), entry.name().toString());
            if (f.exists()) {
              f.delete();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.