Examples of collectKnownRoots()


Examples of org.tmatesoft.hg.internal.RepositoryComparator.collectKnownRoots()

      LinkedHashSet<Nodeid> result = new LinkedHashSet<Nodeid>();
      RepositoryComparator repoCompare = getComparator();
      for (BranchChain bc : getMissingBranches()) {
        List<Nodeid> missing = repoCompare.visitBranches(bc);
        HashSet<Nodeid> common = new HashSet<Nodeid>(); // ordering is irrelevant 
        repoCompare.collectKnownRoots(bc, common);
        // missing could only start with common elements. Once non-common, rest is just distinct branch revision trails.
        for (Iterator<Nodeid> it = missing.iterator(); it.hasNext() && common.contains(it.next()); it.remove()) ;
        result.addAll(missing);
      }
      ArrayList<Nodeid> rv = new ArrayList<Nodeid>(result);
View Full Code Here

Examples of org.tmatesoft.hg.internal.RepositoryComparator.collectKnownRoots()

    final LinkedHashSet<Nodeid> common = new LinkedHashSet<Nodeid>();
    // XXX common can be obtained from repoCompare, but at the moment it would almost duplicate work of calculateMissingBranches
    // once I refactor latter, common shall be taken from repoCompare.
    RepositoryComparator repoCompare = getComparator();
    for (BranchChain bc : getMissingBranches()) {
      repoCompare.collectKnownRoots(bc, common);
    }
    return new LinkedList<Nodeid>(common);
  }
}
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.