]> cloud.milkyroute.net Git - dolphin.git/commitdiff
assure that obsolete file entries are removed from the SVN cache
authorPeter Penz <peter.penz19@gmail.com>
Sat, 12 Dec 2009 15:26:38 +0000 (15:26 +0000)
committerPeter Penz <peter.penz19@gmail.com>
Sat, 12 Dec 2009 15:26:38 +0000 (15:26 +0000)
svn path=/trunk/KDE/kdebase/apps/; revision=1061639

src/versioncontrol/fileviewsvnplugin.cpp

index 91a37a8782939e00633e3b582c39f74c633b88a3..60ab8141596247a59346ec01fab0fe9e3382fb88 100644 (file)
@@ -102,6 +102,15 @@ bool FileViewSvnPlugin::beginRetrieval(const QString& directory)
 {
     Q_ASSERT(directory.endsWith('/'));
 
+    // clear all entries for this directory
+    QMutableHashIterator<QString, VersionState> it(m_versionInfoHash);
+    while (it.hasNext()) {
+        it.next();
+        if (it.key().startsWith(directory)) {
+            it.remove();
+        }
+    }
+
     QStringList arguments;
     arguments << "status" << "--show-updates" << directory;