]> andersk Git - svn-all-fast-export.git/commitdiff
Fix the recursing when the sub-path was modified instead of just added
authorThiago Macieira <thiago@kde.org>
Mon, 8 Jun 2009 08:01:12 +0000 (10:01 +0200)
committerThiago Macieira <thiago@kde.org>
Mon, 8 Jun 2009 08:01:12 +0000 (10:01 +0200)
src/svn.cpp

index 489ef141991d3fe87d3a2049f48af99a01661cd0..4bf4e9edd5a23c052c90492efbbedafa01c8e781 100644 (file)
@@ -656,7 +656,9 @@ int SvnRevision::recurse(const char *path, const svn_fs_path_change_t *change,
             entryFrom = path_from + QByteArray("/") + dirent->name;
 
         // check if this entry is in the changelist for this revision already
-        if (apr_hash_get(changes, entry.constData(), APR_HASH_KEY_STRING)) {
+        svn_fs_path_change_t *otherchange =
+            (svn_fs_path_change_t*)apr_hash_get(changes, entry.constData(), APR_HASH_KEY_STRING);
+        if (otherchange && otherchange->change_kind == svn_fs_path_change_add) {
             qDebug() << entry << "rev" << revnum
                      << "is in the change-list, deferring to that one";
             continue;
This page took 0.030381 seconds and 5 git commands to generate.