From 695ab9ee00207e63491cfe9d2b311b19c903afa3 Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Sun, 23 Dec 2007 19:34:05 -0200 Subject: [PATCH] And run the SVN code too --- src/main.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index 0b7ab85..aa5fe72 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -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; } -- 2.45.1