From 10a2539d4c3151d57db3c1492ab4fce66447ea60 Mon Sep 17 00:00:00 2001 From: Niko Sams Date: Sat, 13 Nov 2010 14:33:26 +0100 Subject: Fix detecting directory moves is_dir wasn't reported correctly, I guess because the path didn't exist anymore at that revision. Reuse the existing wasDir function as it works perfectly. With not detecting the path as a dir, the / got not added, an thus the rule for the source not found. --- src/svn.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/svn.cpp b/src/svn.cpp index f56d5ad..2dbe0b2 100644 --- a/src/svn.cpp +++ b/src/svn.cpp @@ -656,10 +656,7 @@ int SvnRevision::exportInternal(const char *key, const svn_fs_path_change_t *cha if (path_from != NULL) { previous = QString::fromUtf8(path_from); - AprAutoPool revpool(pool.data()); - svn_boolean_t is_dir; - SVN_ERR(svn_fs_is_dir(&is_dir, fs_root, path_from, revpool)); - if (is_dir) { + if (wasDir(fs, rev_from, path_from, pool.data())) { previous += '/'; } MatchRuleList::ConstIterator prevmatch = -- cgit v1.2.1