Index: lutinutil/src/java/org/codelutin/vcs/VCSFileStateManager.java diff -u lutinutil/src/java/org/codelutin/vcs/VCSFileStateManager.java:1.1 lutinutil/src/java/org/codelutin/vcs/VCSFileStateManager.java:1.2 --- lutinutil/src/java/org/codelutin/vcs/VCSFileStateManager.java:1.1 Fri Jan 4 09:58:51 2008 +++ lutinutil/src/java/org/codelutin/vcs/VCSFileStateManager.java Sun Jan 6 15:09:50 2008 @@ -19,18 +19,14 @@ *##%*/ package org.codelutin.vcs; -import org.apache.commons.collections.map.ReferenceMap; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; -import org.codelutin.vcs.VCSException; -import org.codelutin.vcs.VCSHandler; -import org.codelutin.vcs.VCSHandlerFactory; -import org.codelutin.vcs.VCSState; import java.io.File; import java.util.ArrayList; import java.util.Collection; import java.util.List; +import java.util.TreeMap; /** * Classe responsable de la gestion des {@link VCSFileState}. @@ -55,14 +51,7 @@ return VCSHandlerFactory.getHandler(); } - static public List doScan(VCSHandler handler, File root, - boolean changeLog, - VCSState... states) throws VCSException { - return doScan(handler, root, changeLog, false, states); - - } - - static public List doScan(VCSHandler handler, File root, boolean changeLog, boolean rev, + static public List doScan(VCSHandler handler, File root, boolean changeLog, VCSState... states) throws VCSException { // TODO on devrait changer l'algorithme, pour ne recuperer // TODO que ce qui est reellement est necessaire @@ -73,11 +62,7 @@ // recuperation des fichiers distants List remoteFileNames = handler.getRemoteStorageNames(root); - //System.out.println("remote storages found for root [" + root.getName() - // + "]: " + remoteFileNames); - - // recuperation des fichiers uniquement presents sur le repository - // distant + // recuperation des fichiers uniquement presents sur le repository distant List newRemoteName = new ArrayList(remoteFileNames); newRemoteName.removeAll(localFileNames); @@ -245,9 +230,7 @@ .getLog(VCSFileStateManager.class); /** cache of VCSFileState, keys are relativePath.hashCode of each entry */ - @SuppressWarnings({"unchecked"}) - static final protected java.util.Map cache = - (java.util.Map) new ReferenceMap(); + static final protected java.util.Map cache = new TreeMap(); // ///////////////////////////////////////////////////////////////////////// // / utils methods (filter and explode from VCSAction and VCSState)