]> andersk Git - svn-all-fast-export.git/blob - src/svn.cpp
Add initial SVN support
[svn-all-fast-export.git] / src / svn.cpp
1 /*
2  *  Copyright (C) 2007  Thiago Macieira <thiago@kde.org>
3  *
4  *  This program is free software: you can redistribute it and/or modify
5  *  it under the terms of the GNU General Public License as published by
6  *  the Free Software Foundation, either version 2 of the License, or
7  *  (at your option) any later version.
8  *
9  *  This program is distributed in the hope that it will be useful,
10  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12  *  GNU General Public License for more details.
13  *
14  *  You should have received a copy of the GNU General Public License
15  *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
16  */
17
18 #include "svn.h"
19 #include "repository.h"
20
21 typedef QList<Rules::Match> MatchRuleList;
22 typedef QHash<QString, Repository *> RepositoryHash;
23
24 class SvnPrivate
25 {
26 public:
27     SvnPrivate(const QString &pathToRepository);
28     ~SvnPrivate();
29     int youngestRevision();
30     void exportRevision(int revnum);
31
32     MatchRuleList matchRules;
33     RepositoryHash repositories;
34 };
35
36 void Svn::initialize()
37 {
38 }
39
40 Svn::Svn(const QString &pathToRepository)
41     : d(new SvnPrivate(pathToRepository))
42 {
43 }
44
45 Svn::~Svn()
46 {
47     delete d;
48 }
49
50 void Svn::setMatchRules(const MatchRuleList &matchRules)
51 {
52     d->matchRules = matchRules;
53 }
54
55 void Svn::setRepositories(const RepositoryHash &repositories)
56 {
57     d->repositories = repositories;
58 }
59
60 int Svn::youngestRevision()
61 {
62     return d->youngestRevision();
63 }
64
65 void Svn::exportRevision(int revnum)
66 {
67     d->exportRevision(revnum);
68 }
69
This page took 0.038061 seconds and 5 git commands to generate.