aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorThiago Macieira <thiago@cassini.local.lan>2007-12-23 19:38:33 -0200
committerThiago Macieira <thiago@cassini.local.lan>2007-12-23 19:38:33 -0200
commitab162d73a1516c9af0ca1d4956a04eedb7708073 (patch)
treef0d8ecaee2d82b9aa70e623b8c7b053208222849 /src
parent695ab9ee00207e63491cfe9d2b311b19c903afa3 (diff)
downloadsvn2git-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.cpp3
-rw-r--r--src/svn.cpp2
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;