┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/versioncontrol/fileviewsvnplugin.cpp
diff options
context:
space:
mode:
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;