diff options
author | Thiago Macieira <thiago@cassini.local.lan> | 2007-12-23 19:38:33 -0200 |
---|---|---|
committer | Thiago Macieira <thiago@cassini.local.lan> | 2007-12-23 19:38:33 -0200 |
commit | ab162d73a1516c9af0ca1d4956a04eedb7708073 (patch) | |
tree | f0d8ecaee2d82b9aa70e623b8c7b053208222849 /src | |
parent | 695ab9ee00207e63491cfe9d2b311b19c903afa3 (diff) | |
download | svn2git-ab162d73a1516c9af0ca1d4956a04eedb7708073.tar svn2git-ab162d73a1516c9af0ca1d4956a04eedb7708073.tar.gz svn2git-ab162d73a1516c9af0ca1d4956a04eedb7708073.tar.bz2 svn2git-ab162d73a1516c9af0ca1d4956a04eedb7708073.tar.xz svn2git-ab162d73a1516c9af0ca1d4956a04eedb7708073.zip |
Handle errors correctly
Diffstat (limited to 'src')
-rw-r--r-- | src/main.cpp | 3 | ||||
-rw-r--r-- | src/svn.cpp | 2 |
2 files changed, 3 insertions, 2 deletions
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; |