diff --git a/platform/vcs-impl/src/com/intellij/openapi/vcs/changes/LazyRefreshingSelfQueue.java b/platform/vcs-impl/src/com/intellij/openapi/vcs/changes/LazyRefreshingSelfQueue.java index 31ed0140e76c..4f0bd0bf219b 100644 --- a/platform/vcs-impl/src/com/intellij/openapi/vcs/changes/LazyRefreshingSelfQueue.java +++ b/platform/vcs-impl/src/com/intellij/openapi/vcs/changes/LazyRefreshingSelfQueue.java @@ -70,7 +70,7 @@ public class LazyRefreshingSelfQueue { synchronized (myLock) { for (Pair pair : myQueue) { if (pair.getFirst() != null) { - onlyAbsolute = pair.getFirst() < startTime; + onlyAbsolute = pair.getFirst() > startTime; break; } } diff --git a/platform/vcs-impl/src/com/intellij/openapi/vcs/changes/RemoteRevisionsCache.java b/platform/vcs-impl/src/com/intellij/openapi/vcs/changes/RemoteRevisionsCache.java index 9306fd340ea8..9fa9aa1cbe4b 100644 --- a/platform/vcs-impl/src/com/intellij/openapi/vcs/changes/RemoteRevisionsCache.java +++ b/platform/vcs-impl/src/com/intellij/openapi/vcs/changes/RemoteRevisionsCache.java @@ -170,6 +170,7 @@ public class RemoteRevisionsCache implements PlusMinus } public void plus(final Pair pair) { + LOG.debug("add " + pair.getFirst()); // does not support if (pair.getSecond().getDiffProvider() == null) return; @@ -184,10 +185,12 @@ public class RemoteRevisionsCache implements PlusMinus synchronized (myLock) { final Pair value = myData.get(key); if (value == null) { + LOG.debug("adding new " + key); final LazyRefreshingSelfQueue queue = getQueue(vcsRoot); myData.put(key, new Pair(vcsRoot, NOT_LOADED)); queue.addRequest(key); } else if (! value.getFirst().equals(vcsRoot)) { + LOG.debug("switch vcs " + key); switchVcs(value.getFirst(), vcsRoot, key); } } @@ -213,6 +216,7 @@ public class RemoteRevisionsCache implements PlusMinus } public void minus(Pair pair) { + LOG.debug("minus " + pair.getFirst()); // does not support if (pair.getSecond().getDiffProvider() == null) return; final VirtualFile root = getRootForPath(pair.getFirst()); @@ -221,6 +225,7 @@ public class RemoteRevisionsCache implements PlusMinus final LazyRefreshingSelfQueue queue; final String key = pair.getFirst(); synchronized (myLock) { + LOG.debug("removing " + key); queue = getQueue(new VcsRoot(pair.getSecond(), root)); myData.remove(key); }