diff options
Diffstat (limited to 'src/ruleparser.cpp')
-rw-r--r-- | src/ruleparser.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ruleparser.cpp b/src/ruleparser.cpp index 0f675dd..6e799c4 100644 --- a/src/ruleparser.cpp +++ b/src/ruleparser.cpp @@ -55,6 +55,7 @@ void Rules::load() QRegExp matchRepoLine("repository\\s+(\\S+)", Qt::CaseInsensitive); QRegExp matchBranchLine("branch\\s+(\\S+)", Qt::CaseInsensitive); QRegExp matchRevLine("(min|max) revision (\\d+)", Qt::CaseInsensitive); + QRegExp matchAnnotateLine("annotated\\s+(\\S+)", Qt::CaseInsensitive); QTextStream s(&file); enum { ReadingNone, ReadingRepository, ReadingMatch } state = ReadingNone; @@ -109,6 +110,9 @@ void Rules::load() else qFatal("Invalid action \"%s\" on line %d", qPrintable(action), lineNumber); continue; + } else if (matchAnnotateLine.exactMatch(line)) { + match.annotate = matchAnnotateLine.cap(1) == "true"; + continue; } else if (line == "end match") { if (!match.repository.isEmpty()) match.action = Match::Export; |