From 5a955ba10bd32786fcbe570b4ae45418eaf51f19 Mon Sep 17 00:00:00 2001 From: Torgny Nyblom Date: Wed, 8 Sep 2010 21:33:07 +0200 Subject: Try and work around cvs2svn branching/tagging issues where the directory tree is not what it seems like --- src/svn.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src') diff --git a/src/svn.cpp b/src/svn.cpp index 90b63a7..cfa137e 100644 --- a/src/svn.cpp +++ b/src/svn.cpp @@ -749,6 +749,13 @@ int SvnRevision::recurse(const char *path, const svn_fs_path_change_t *change, // get the dir listing apr_hash_t *entries; + svn_node_kind_t kind; + SVN_ERR(svn_fs_check_path(&kind, fs_root, path, pool)); + if(kind == svn_node_none) { + qWarning() << "Trying to recurse using a nonexistant path" << path << ", ignoring"; + return EXIT_SUCCESS; + } + SVN_ERR(svn_fs_dir_entries(&entries, fs_root, path, pool)); AprAutoPool dirpool(pool); -- cgit v1.2.1