aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.cpp
diff options
context:
space:
mode:
authorRaja R Harinath <harinath@hurrynot.org>2010-07-22 18:32:21 +0530
committerRaja R Harinath <harinath@hurrynot.org>2010-07-22 18:32:21 +0530
commit008b28e0f4c48de8d740c51c053020d1a36315bf (patch)
tree6acd61c923518b0f9af289f1ad81e8bf6deeb463 /src/main.cpp
parentf0b31cfe9d31421b83507316d1274d191336a1f7 (diff)
downloadsvn2git-008b28e0f4c48de8d740c51c053020d1a36315bf.tar
svn2git-008b28e0f4c48de8d740c51c053020d1a36315bf.tar.gz
svn2git-008b28e0f4c48de8d740c51c053020d1a36315bf.tar.bz2
svn2git-008b28e0f4c48de8d740c51c053020d1a36315bf.tar.xz
svn2git-008b28e0f4c48de8d740c51c053020d1a36315bf.zip
Provide a way to merge repositories
Suppose you have multiple repositories in SVN that you want to merge into a single one in GIT, it can get very messy to handle all the special-case rules. Instead, we introduce a new "forwarding repository" concept, which looks like repository subordinate repository unified prefix foo/ end repository This forwards all commits on the "subordinate" SVN tree to the "unified" GIT tree, with each file prefixed with "foo/".
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp
index ff11255..3feb3cf 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -124,6 +124,8 @@ int main(int argc, char **argv)
int min_rev = 1;
foreach (Rules::Repository rule, rules.repositories()) {
Repository *repo = makeRepository(rule, repositories);
+ if (!repo)
+ return EXIT_FAILURE;
repositories.insert(rule.name, repo);
int repo_next = repo->setupIncremental(cutoff);