]> andersk Git - svn-all-fast-export.git/blobdiff - src/ruleparser.cpp
Add support for annotated tags
[svn-all-fast-export.git] / src / ruleparser.cpp
index 0f675ddaa20e697721fec4d34b8366cd2aca8b28..6e799c4ccdbc147fea4005a13f24eb4a3cf3f2a9 100644 (file)
@@ -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;
This page took 0.028449 seconds and 4 git commands to generate.