]> andersk Git - svn-all-fast-export.git/commitdiff
And run the SVN code too
authorThiago Macieira <thiago@cassini.local.lan>
Sun, 23 Dec 2007 21:34:05 +0000 (19:34 -0200)
committerThiago Macieira <thiago@cassini.local.lan>
Sun, 23 Dec 2007 21:34:05 +0000 (19:34 -0200)
src/main.cpp

index 0b7ab8568253b9e5cdd4b46319b8014ef3ae03d0..aa5fe72ef339cfc6f163d668100f8fa15c6d3b0d 100644 (file)
@@ -22,6 +22,7 @@
 
 #include "ruleparser.h"
 #include "repository.h"
+#include "svn.h"
 
 int main(int argc, char **argv)
 {
@@ -42,6 +43,16 @@ int main(int argc, char **argv)
     foreach (Rules::Repository rule, rules.repositories())
         repositories.insert(rule.name, new Repository(rule));
 
+    Svn::initialize();
+    Svn svn(arguments.at(2));
+    svn.setMatchRules(rules.matchRules());
+    svn.setRepositories(repositories);
+
+    int max_rev = svn.youngestRevision();
+    for (int i = 1; i < max_rev; ++i)
+        svn.exportRevision(i);
+
+    qDeleteAll(repositories);
     // success
     return 0;
 }
This page took 0.032411 seconds and 5 git commands to generate.