aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ruleparser.cpp5
-rw-r--r--src/svn.cpp5
2 files changed, 8 insertions, 2 deletions
diff --git a/src/ruleparser.cpp b/src/ruleparser.cpp
index 3297d77..2371f30 100644
--- a/src/ruleparser.cpp
+++ b/src/ruleparser.cpp
@@ -60,7 +60,9 @@ void Rules::load()
enum { ReadingNone, ReadingRepository, ReadingMatch } state = ReadingNone;
Repository repo;
Match match;
+ int lineNumber = 0;
while (!s.atEnd()) {
+ ++lineNumber;
QString origLine = s.readLine();
QString line = origLine;
@@ -121,7 +123,8 @@ void Rules::load()
match = Match();
match.rx = QRegExp(matchLine.cap(1), Qt::CaseSensitive, QRegExp::RegExp2);
} else {
- qFatal("Malformed line in rules file: %s", qPrintable(origLine));
+ qFatal("Malformed line in rules file: line %d: %s",
+ lineNumber, qPrintable(origLine));
}
}
}
diff --git a/src/svn.cpp b/src/svn.cpp
index 8d5836b..a7c48a1 100644
--- a/src/svn.cpp
+++ b/src/svn.cpp
@@ -323,9 +323,12 @@ int SvnPrivate::exportRevision(int revnum)
continue;
if (rule.rx.exactMatch(current)) {
foundMatch = true;
- if (rule.repository.isEmpty())
+ if (rule.repository.isEmpty()) {
// ignore rule
+ qDebug() << "..." << qPrintable(current) << "rev" << revnum
+ << "-> ignored";
break;
+ }
QString repository = current;
QString branch = current;