@@ -477,7 +477,7 @@ int SvnRevision::prepareTransactions()
477
477
apr_hash_t *changes;
478
478
SVN_ERR (svn_fs_paths_changed2 (&changes, fs_root, pool));
479
479
480
- QMap <QByteArray, svn_fs_path_change2_t *> map;
480
+ QMultiMap <QByteArray, svn_fs_path_change2_t *> map;
481
481
for (apr_hash_index_t *i = apr_hash_first (pool, changes); i; i = apr_hash_next (i)) {
482
482
const void *vkey;
483
483
void *value;
@@ -497,10 +497,10 @@ int SvnRevision::prepareTransactions()
497
497
fflush (stderr);
498
498
exit (1 );
499
499
}
500
- map.insertMulti (QByteArray (key), change);
500
+ map.insert (QByteArray (key), change);
501
501
}
502
502
503
- QMapIterator <QByteArray, svn_fs_path_change2_t *> i (map);
503
+ QMultiMapIterator <QByteArray, svn_fs_path_change2_t *> i (map);
504
504
while (i.hasNext ()) {
505
505
i.next ();
506
506
if (exportEntry (i.key (), i.value (), changes) == EXIT_FAILURE)
@@ -975,16 +975,16 @@ int SvnRevision::recursiveDumpDir(Repository::Transaction *txn, svn_fs_t *fs, sv
975
975
976
976
// While we get a hash, put it in a map for sorted lookup, so we can
977
977
// repeat the conversions and get the same git commit hashes.
978
- QMap <QByteArray, svn_node_kind_t > map;
978
+ QMultiMap <QByteArray, svn_node_kind_t > map;
979
979
for (apr_hash_index_t *i = apr_hash_first (pool, entries); i; i = apr_hash_next (i)) {
980
980
const void *vkey;
981
981
void *value;
982
982
apr_hash_this (i, &vkey, NULL , &value);
983
983
svn_fs_dirent_t *dirent = reinterpret_cast <svn_fs_dirent_t *>(value);
984
- map.insertMulti (QByteArray (dirent->name ), dirent->kind );
984
+ map.insert (QByteArray (dirent->name ), dirent->kind );
985
985
}
986
986
987
- QMapIterator <QByteArray, svn_node_kind_t > i (map);
987
+ QMultiMapIterator <QByteArray, svn_node_kind_t > i (map);
988
988
while (i.hasNext ()) {
989
989
dirpool.clear ();
990
990
i.next ();
@@ -1043,17 +1043,17 @@ int SvnRevision::recurse(const char *path, const svn_fs_path_change2_t *change,
1043
1043
1044
1044
// While we get a hash, put it in a map for sorted lookup, so we can
1045
1045
// repeat the conversions and get the same git commit hashes.
1046
- QMap <QByteArray, svn_node_kind_t > map;
1046
+ QMultiMap <QByteArray, svn_node_kind_t > map;
1047
1047
for (apr_hash_index_t *i = apr_hash_first (pool, entries); i; i = apr_hash_next (i)) {
1048
1048
dirpool.clear ();
1049
1049
const void *vkey;
1050
1050
void *value;
1051
1051
apr_hash_this (i, &vkey, NULL , &value);
1052
1052
svn_fs_dirent_t *dirent = reinterpret_cast <svn_fs_dirent_t *>(value);
1053
- map.insertMulti (QByteArray (dirent->name ), dirent->kind );
1053
+ map.insert (QByteArray (dirent->name ), dirent->kind );
1054
1054
}
1055
1055
1056
- QMapIterator <QByteArray, svn_node_kind_t > i (map);
1056
+ QMultiMapIterator <QByteArray, svn_node_kind_t > i (map);
1057
1057
while (i.hasNext ()) {
1058
1058
dirpool.clear ();
1059
1059
i.next ();
@@ -1271,16 +1271,16 @@ int SvnRevision::addGitIgnoreOnBranch(apr_pool_t *pool, QString key, QString pat
1271
1271
return EXIT_FAILURE;
1272
1272
}
1273
1273
1274
- QMap <QByteArray, svn_node_kind_t > map;
1274
+ QMultiMap <QByteArray, svn_node_kind_t > map;
1275
1275
for (apr_hash_index_t *i = apr_hash_first (pool, entries); i; i = apr_hash_next (i)) {
1276
1276
const void *vkey;
1277
1277
void *value;
1278
1278
apr_hash_this (i, &vkey, NULL , &value);
1279
1279
svn_fs_dirent_t *dirent = reinterpret_cast <svn_fs_dirent_t *>(value);
1280
- map.insertMulti (QByteArray (dirent->name ), dirent->kind );
1280
+ map.insert (QByteArray (dirent->name ), dirent->kind );
1281
1281
}
1282
1282
1283
- QMapIterator <QByteArray, svn_node_kind_t > i (map);
1283
+ QMultiMapIterator <QByteArray, svn_node_kind_t > i (map);
1284
1284
while (i.hasNext ()) {
1285
1285
i.next ();
1286
1286
QString entryName = key + " /" + i.key ();
0 commit comments