┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/versioncontrol/fileviewsvnplugin.cpp
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2009-12-12 15:26:38 +0000
committerPeter Penz <[email protected]>2009-12-12 15:26:38 +0000
commit9b0057b543f5442f8378b49425772dedf4fce8de (patch)
treef5b48d3c1908080b640fc8f2fb4d5c85fac92281 /src/versioncontrol/fileviewsvnplugin.cpp
parent0ca68f6a562de0ccd671715ea6e98ee2504dbb6b (diff)
assure that obsolete file entries are removed from the SVN cache
svn path=/trunk/KDE/kdebase/apps/; revision=1061639
Diffstat (limited to 'src/versioncontrol/fileviewsvnplugin.cpp')
-rw-r--r--src/versioncontrol/fileviewsvnplugin.cpp9
1 files changed, 9 insertions, 0 deletions
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<QString, VersionState> it(m_versionInfoHash);
+ while (it.hasNext()) {
+ it.next();
+ if (it.key().startsWith(directory)) {
+ it.remove();
+ }
+ }
+
QStringList arguments;
arguments << "status" << "--show-updates" << directory;