From: Thiago Macieira Date: Sun, 23 Dec 2007 21:38:33 +0000 (-0200) Subject: Handle errors correctly X-Git-Url: http://andersk.mit.edu/gitweb/svn-all-fast-export.git/commitdiff_plain/ab162d73a1516c9af0ca1d4956a04eedb7708073 Handle errors correctly --- diff --git a/src/main.cpp b/src/main.cpp index aa5fe72..ba6f2f5 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -50,7 +50,8 @@ int main(int argc, char **argv) int max_rev = svn.youngestRevision(); for (int i = 1; i < max_rev; ++i) - svn.exportRevision(i); + if (!svn.exportRevision(i)) + break; qDeleteAll(repositories); // success diff --git a/src/svn.cpp b/src/svn.cpp index aeca0fc..84ce3af 100644 --- a/src/svn.cpp +++ b/src/svn.cpp @@ -311,7 +311,7 @@ int SvnPrivate::exportRevision(int revnum) svn_pool_clear(revpool); if (transactions.isEmpty()) - return true; // no changes? + return EXIT_SUCCESS; // no changes? // now create the commit apr_hash_t *revprops;