aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNiko Sams <niko.sams@gmail.com>2010-11-13 14:33:26 +0100
committerNiko Sams <niko.sams@gmail.com>2010-11-13 14:33:26 +0100
commit10a2539d4c3151d57db3c1492ab4fce66447ea60 (patch)
treeb063458055a4bc1c988e094bbc3061a72b71bb2b
parent38a34dc9a3cced350b4b71120c9c1d1e005ed3a1 (diff)
downloadsvn2git-10a2539d4c3151d57db3c1492ab4fce66447ea60.tar
svn2git-10a2539d4c3151d57db3c1492ab4fce66447ea60.tar.gz
svn2git-10a2539d4c3151d57db3c1492ab4fce66447ea60.tar.bz2
svn2git-10a2539d4c3151d57db3c1492ab4fce66447ea60.tar.xz
svn2git-10a2539d4c3151d57db3c1492ab4fce66447ea60.zip
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.
-rw-r--r--src/svn.cpp5
1 files changed, 1 insertions, 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 =