From: Peter Penz Date: Sat, 12 Dec 2009 15:26:38 +0000 (+0000) Subject: assure that obsolete file entries are removed from the SVN cache X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/9b0057b543f5442f8378b49425772dedf4fce8de assure that obsolete file entries are removed from the SVN cache svn path=/trunk/KDE/kdebase/apps/; revision=1061639 --- diff --git a/src/versioncontrol/fileviewsvnplugin.cpp b/src/versioncontrol/fileviewsvnplugin.cpp index 91a37a878..60ab81415 100644 --- a/src/versioncontrol/fileviewsvnplugin.cpp +++ b/src/versioncontrol/fileviewsvnplugin.cpp @@ -102,6 +102,15 @@ bool FileViewSvnPlugin::beginRetrieval(const QString& directory) { Q_ASSERT(directory.endsWith('/')); + // clear all entries for this directory + QMutableHashIterator it(m_versionInfoHash); + while (it.hasNext()) { + it.next(); + if (it.key().startsWith(directory)) { + it.remove(); + } + } + QStringList arguments; arguments << "status" << "--show-updates" << directory;