diff options
author | Thiago Macieira <thiago@kde.org> | 2009-06-08 11:06:17 +0200 |
---|---|---|
committer | Thiago Macieira <thiago@kde.org> | 2009-06-08 11:06:17 +0200 |
commit | a5fd311b84821f8cfa9ce89725501385070e744d (patch) | |
tree | 60af0ca84e0375e8981456b896613f28560861ee /src/ruleparser.cpp | |
parent | 18dfc8c47b4fbd862cf1d2bbf245e2ff48eeb390 (diff) | |
download | svn2git-a5fd311b84821f8cfa9ce89725501385070e744d.tar svn2git-a5fd311b84821f8cfa9ce89725501385070e744d.tar.gz svn2git-a5fd311b84821f8cfa9ce89725501385070e744d.tar.bz2 svn2git-a5fd311b84821f8cfa9ce89725501385070e744d.tar.xz svn2git-a5fd311b84821f8cfa9ce89725501385070e744d.zip |
Add support for annotated tags
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; |