From ce56750e8a47e3be86cf0c0964a145c7d7f943e5 Mon Sep 17 00:00:00 2001 From: Torgny Nyblom Date: Sat, 4 Dec 2010 20:53:43 +0100 Subject: Add an option to print some stats after a run. --- src/svn.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/svn.cpp') diff --git a/src/svn.cpp b/src/svn.cpp index 5026f45..38e21dc 100644 --- a/src/svn.cpp +++ b/src/svn.cpp @@ -190,6 +190,7 @@ findMatchRule(const MatchRuleList &matchRules, int revnum, const QString ¤ if (it->action == Rules::Match::Recurse && ruleMask & NoRecurseRule) continue; if (it->rx.indexIn(current) == 0) { + Stats::instance()->ruleMatched(*it, revnum); return it; } } @@ -664,6 +665,7 @@ int SvnRevision::exportInternal(const char *key, const svn_fs_path_change_t *cha if (prevmatch != matchRules.constEnd()) { splitPathName(*prevmatch, previous, &prevsvnprefix, &prevrepository, &prevbranch, &prevpath); + } else { qWarning() << "SVN reports a \"copy from\" @" << revnum << "from" << path_from << "@" << rev_from << "but no matching rules found! Ignoring copy, treating as a modification"; path_from = NULL; -- cgit v1.2.1