removing empty changelists
authorDmitry Avdeev <Dmitry.Avdeev@jetbrains.com>
Mon, 15 Mar 2010 12:33:35 +0000 (15:33 +0300)
committerDmitry Avdeev <Dmitry.Avdeev@jetbrains.com>
Mon, 15 Mar 2010 12:33:35 +0000 (15:33 +0300)
platform/vcs-impl/src/com/intellij/openapi/vcs/changes/ChangeListManagerImpl.java

index e94ded8095e986dd03d122b15698f498f6a0fff3..fdb3459ee10b1dc77b3e392b17471cb9c1af4f41 100644 (file)
@@ -124,7 +124,8 @@ public class ChangeListManagerImpl extends ChangeListManagerEx implements Projec
     myListeners.addListener(new ChangeListAdapter() {
       @Override
       public void defaultListChanged(final ChangeList oldDefaultList, ChangeList newDefaultList) {
-        if (oldDefaultList instanceof LocalChangeList &&
+        if (!ApplicationManager.getApplication().isUnitTestMode() &&
+          oldDefaultList instanceof LocalChangeList &&
           oldDefaultList.getChanges().isEmpty()) {
 
           SwingUtilities.invokeLater(new Runnable() {