aboutsummaryrefslogtreecommitdiffstats
path: root/src/ruleparser.cpp
diff options
context:
space:
mode:
authorTorgny Nyblom <kde@nyblom.org>2010-09-28 20:40:05 +0200
committerTorgny Nyblom <kde@nyblom.org>2010-09-28 20:40:05 +0200
commita85ac9698a77da1cd446e7d91010ebe62cbc5f76 (patch)
treebb8cc67898bb78e906a595dc79497816d3bb153f /src/ruleparser.cpp
parentf11207edc33ccaf91b28fb86b135fa42cd5cf46b (diff)
downloadsvn2git-a85ac9698a77da1cd446e7d91010ebe62cbc5f76.tar
svn2git-a85ac9698a77da1cd446e7d91010ebe62cbc5f76.tar.gz
svn2git-a85ac9698a77da1cd446e7d91010ebe62cbc5f76.tar.bz2
svn2git-a85ac9698a77da1cd446e7d91010ebe62cbc5f76.tar.xz
svn2git-a85ac9698a77da1cd446e7d91010ebe62cbc5f76.zip
Unify debug messages and Match structs
Diffstat (limited to 'src/ruleparser.cpp')
-rw-r--r--src/ruleparser.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ruleparser.cpp b/src/ruleparser.cpp
index 10a22ac..5927c5a 100644
--- a/src/ruleparser.cpp
+++ b/src/ruleparser.cpp
@@ -187,12 +187,14 @@ void Rules::load()
repo = Repository(); // clear
repo.name = repoLine.cap(1);
repo.lineNumber = lineNumber;
+ repo.filename = filename;
} else if (isMatchRule) {
// match rule
state = ReadingMatch;
match = Match();
match.rx = QRegExp(matchLine.cap(1), Qt::CaseSensitive, QRegExp::RegExp2);
match.lineNumber = lineNumber;
+ match.filename = filename;
} else if (isVariableRule) {
QString variable = declareLine.cap(1);
QString value = declareLine.cap(2);
@@ -207,7 +209,7 @@ void Rules::load()
#ifndef QT_NO_DEBUG_STREAM
QDebug operator<<(QDebug s, const Rules::Match &rule)
{
- s.nospace() << rule.rx.pattern() << " (line " << rule.lineNumber << ")";
+ s.nospace() << rule.info();
return s.space();
}