- int pos = filePath.indexOf('/');
- const int length = filePath.length() - pos - 1;
- filePath = filePath.mid(pos, length);
- if (!filePath.isEmpty()) {
- m_versionInfoHash.insert(filePath, state);
+ // Only values with a different state as 'NormalVersion'
+ // are added to the hash table. If a value is not in the
+ // hash table, it is automatically defined as 'NormalVersion'
+ // (see FileViewSvnPlugin::versionState()).
+ if (state != NormalVersion) {
+ int pos = filePath.indexOf('/');
+ const int length = filePath.length() - pos - 1;
+ filePath = filePath.mid(pos, length);
+ if (!filePath.isEmpty()) {
+ m_versionInfoHash.insert(filePath, state);
+ }