From 9b0057b543f5442f8378b49425772dedf4fce8de Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Sat, 12 Dec 2009 15:26:38 +0000 Subject: assure that obsolete file entries are removed from the SVN cache svn path=/trunk/KDE/kdebase/apps/; revision=1061639 --- src/versioncontrol/fileviewsvnplugin.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/versioncontrol/fileviewsvnplugin.cpp') 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; -- cgit v1.3