diff options
author | Torgny Nyblom <kde@nyblom.org> | 2010-12-04 20:53:43 +0100 |
---|---|---|
committer | Torgny Nyblom <kde@nyblom.org> | 2010-12-04 20:53:43 +0100 |
commit | ce56750e8a47e3be86cf0c0964a145c7d7f943e5 (patch) | |
tree | 53f1f80707fc7f147a111a85593ecb92e72a67d5 /src/svn.cpp | |
parent | 6e13e426db84b9137b98ba80552b91e3684085cd (diff) | |
download | svn2git-ce56750e8a47e3be86cf0c0964a145c7d7f943e5.tar svn2git-ce56750e8a47e3be86cf0c0964a145c7d7f943e5.tar.gz svn2git-ce56750e8a47e3be86cf0c0964a145c7d7f943e5.tar.bz2 svn2git-ce56750e8a47e3be86cf0c0964a145c7d7f943e5.tar.xz svn2git-ce56750e8a47e3be86cf0c0964a145c7d7f943e5.zip |
Add an option to print some stats after a run.
Diffstat (limited to 'src/svn.cpp')
-rw-r--r-- | src/svn.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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; |