diff options
author | Thiago Macieira <thiago@cassini.local.lan> | 2007-12-24 12:25:54 -0200 |
---|---|---|
committer | Thiago Macieira <thiago@cassini.local.lan> | 2007-12-24 12:25:54 -0200 |
commit | 1129b4256d605da67bdc3fc87264b070ada2fa53 (patch) | |
tree | b2f6b34fdb9955af1ae2c84f64b495a7d707a6a4 | |
parent | 9d15855011a8f14c78bc1898a0deb984173d5940 (diff) | |
download | svn2git-1129b4256d605da67bdc3fc87264b070ada2fa53.tar svn2git-1129b4256d605da67bdc3fc87264b070ada2fa53.tar.gz svn2git-1129b4256d605da67bdc3fc87264b070ada2fa53.tar.bz2 svn2git-1129b4256d605da67bdc3fc87264b070ada2fa53.tar.xz svn2git-1129b4256d605da67bdc3fc87264b070ada2fa53.zip |
add some more information to the output
-rw-r--r-- | src/ruleparser.cpp | 5 | ||||
-rw-r--r-- | 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; |