diff options
author | Thiago Macieira <thiago@cassini.local.lan> | 2007-12-23 20:07:44 -0200 |
---|---|---|
committer | Thiago Macieira <thiago@cassini.local.lan> | 2007-12-23 20:07:44 -0200 |
commit | add9aaf41b158d65dc7a5d51771392918eff5b87 (patch) | |
tree | 52d0a7d81b861bef90ac5116dea736105ee0162f /src/ruleparser.cpp | |
parent | ab162d73a1516c9af0ca1d4956a04eedb7708073 (diff) | |
download | svn2git-add9aaf41b158d65dc7a5d51771392918eff5b87.tar svn2git-add9aaf41b158d65dc7a5d51771392918eff5b87.tar.gz svn2git-add9aaf41b158d65dc7a5d51771392918eff5b87.tar.bz2 svn2git-add9aaf41b158d65dc7a5d51771392918eff5b87.tar.xz svn2git-add9aaf41b158d65dc7a5d51771392918eff5b87.zip |
Parse rules correctly
Diffstat (limited to 'src/ruleparser.cpp')
-rw-r--r-- | src/ruleparser.cpp | 11 |
1 files changed, 8 insertions, 3 deletions
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); |