Package org.tmatesoft.hg.util.Path

Examples of org.tmatesoft.hg.util.Path.CompareResult


      }
      // If one of configured files is nested under the path, and we shall report parents, accept.
      // Note, I don't respect includeDirContent here as with file it's easy to add parent to paths explicitly, if needed.
      // (if includeDirContent == .f and includeParentDirs == .f, directory than owns a scope file won't get reported) 
      for (Path f : files) {
        CompareResult cr = f.compareWith(path);
        if (cr == Nested || cr == ImmediateChild) {
          return true;
        }
      }
    } else {
      for (Path f : files) {
        if (f.equals(path)) {
          return true;
        }
      }
      // if interested in nested/recursive dirs, shall check if supplied file is under any of our configured locations
      if (!includeNestedDirs && !includeDirContent) {
        return false;
      }
      for (Path d : dirs) {
        CompareResult cr = d.compareWith(path);
        if (includeNestedDirs && cr == Parent) {
          // file is nested in one of our locations
          return true;
        }
        if (includeDirContent && cr == ImmediateParent) {
View Full Code Here


      }
      // If one of configured files is nested under the path, and we shall report parents, accept.
      // Note, I don't respect includeDirContent here as with file it's easy to add parent to paths explicitly, if needed.
      // (if includeDirContent == .f and includeParentDirs == .f, directory than owns a scope file won't get reported) 
      for (Path f : files) {
        CompareResult cr = f.compareWith(path);
        if (cr == Nested || cr == ImmediateChild) {
          return true;
        }
      }
    } else {
      for (Path f : files) {
        if (f.equals(path)) {
          return true;
        }
      }
      // if interested in nested/recursive dirs, shall check if supplied file is under any of our configured locations
      if (!includeNestedDirs && !includeDirContent) {
        return false;
      }
      for (Path d : dirs) {
        CompareResult cr = d.compareWith(path);
        if (includeNestedDirs && cr == Parent) {
          // file is nested in one of our locations
          return true;
        }
        if (includeDirContent && cr == ImmediateParent) {
View Full Code Here

TOP

Related Classes of org.tmatesoft.hg.util.Path.CompareResult

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.