From 1129b4256d605da67bdc3fc87264b070ada2fa53 Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Mon, 24 Dec 2007 12:25:54 -0200 Subject: [PATCH] add some more information to the output --- src/ruleparser.cpp | 5 ++++- src/svn.cpp | 5 ++++- 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; -- 2.45.1