From: Thiago Macieira Date: Sun, 23 Dec 2007 22:07:44 +0000 (-0200) Subject: Parse rules correctly X-Git-Url: http://andersk.mit.edu/gitweb/svn-all-fast-export.git/commitdiff_plain/add9aaf41b158d65dc7a5d51771392918eff5b87 Parse rules correctly --- diff --git a/src/ruleparser.cpp b/src/ruleparser.cpp index ea67865..f116ce4 100644 --- a/src/ruleparser.cpp +++ b/src/ruleparser.cpp @@ -77,14 +77,19 @@ void Rules::load() branch.branchFrom = repoBranchLine.cap(1); repo.branches += branch; + continue; } } else if (state == ReadingMatch) { - if (matchRepoLine.exactMatch(line)) + if (matchRepoLine.exactMatch(line)) { match.repository = matchRepoLine.cap(0); - else if (matchBranchLine.exactMatch(line)) + continue; + } else if (matchBranchLine.exactMatch(line)) { match.branch = matchBranchLine.cap(0); - else if (matchPathLine.exactMatch(line)) + continue; + } else if (matchPathLine.exactMatch(line)) { match.path = matchPathLine.cap(0); + continue; + } } bool isRepositoryRule = repoLine.exactMatch(line);