aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTorgny Nyblom <nyblom@kde.org>2012-11-23 16:06:43 +0100
committerTorgny Nyblom <nyblom@kde.org>2012-11-23 16:06:43 +0100
commit2f358636414d086e6576a0b0341c532b1e7fc1a3 (patch)
tree02244f8aef8b6b644f3004813f67cdc4c4681299
parentc9376cfbe605a5bad26b76d113f9060d5cdf8753 (diff)
parentc59389ceed6214d85011a91263d935f46a501632 (diff)
downloadsvn2git-2f358636414d086e6576a0b0341c532b1e7fc1a3.tar
svn2git-2f358636414d086e6576a0b0341c532b1e7fc1a3.tar.gz
svn2git-2f358636414d086e6576a0b0341c532b1e7fc1a3.tar.bz2
svn2git-2f358636414d086e6576a0b0341c532b1e7fc1a3.tar.xz
svn2git-2f358636414d086e6576a0b0341c532b1e7fc1a3.zip
Merge commit 'refs/merge-requests/17' of gitorious.org:svn2git/svn2git into mr/17
-rw-r--r--src/svn.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/svn.cpp b/src/svn.cpp
index d95ccb3..32beb89 100644
--- a/src/svn.cpp
+++ b/src/svn.cpp
@@ -832,8 +832,6 @@ int SvnRevision::recurse(const char *path, const svn_fs_path_change_t *change,
apr_hash_this(i, &vkey, NULL, &value);
svn_fs_dirent_t *dirent = reinterpret_cast<svn_fs_dirent_t *>(value);
- if (dirent->kind != svn_node_dir)
- continue; // not a directory, so can't recurse; skip
QByteArray entry = path + QByteArray("/") + dirent->name;
QByteArray entryFrom;
@@ -860,11 +858,13 @@ int SvnRevision::recurse(const char *path, const svn_fs_path_change_t *change,
rev_from, changes, current, *match, matchRules, dirpool) == EXIT_FAILURE)
return EXIT_FAILURE;
} else {
- qDebug() << current << "rev" << revnum
- << "did not match any rules; auto-recursing";
- if (recurse(entry, change, entryFrom.isNull() ? 0 : entryFrom.constData(),
- matchRules, rev_from, changes, dirpool) == EXIT_FAILURE)
- return EXIT_FAILURE;
+ if (dirent->kind == svn_node_dir) {
+ qDebug() << current << "rev" << revnum
+ << "did not match any rules; auto-recursing";
+ if (recurse(entry, change, entryFrom.isNull() ? 0 : entryFrom.constData(),
+ matchRules, rev_from, changes, dirpool) == EXIT_FAILURE)
+ return EXIT_FAILURE;
+ }
}
}