VcsVfsListener: clear myDirtyFiles after marking these files dirty.
authorKirill Likhodedov <Kirill.Likhodedov@gmail.com>
Fri, 7 Oct 2011 13:23:42 +0000 (17:23 +0400)
committerKirill Likhodedov <Kirill.Likhodedov@gmail.com>
Fri, 7 Oct 2011 13:23:42 +0000 (17:23 +0400)
platform/vcs-api/src/com/intellij/openapi/vcs/VcsVFSListener.java

index 134ada373f63ce995d5872cc3b37d4edd12a4d9d..8eadea29883d07fe5b6cd69ebf7c2b891289cbba 100644 (file)
@@ -410,6 +410,7 @@ public abstract class VcsVFSListener implements Disposable {
               }
             }
             myDirtyScopeManager.filesDirty(files, dirs);
+            myDirtyFiles.clear();
           }
           if (! myExceptions.isEmpty()) {
             AbstractVcsHelper.getInstance(myProject).showErrors(myExceptions, myVcs.getDisplayName() + " operations errors");