aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/main.cpp1
-rw-r--r--src/svn.cpp2
2 files changed, 3 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 4032b71..2e92a32 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -61,6 +61,7 @@ static const CommandLineOption options[] = {
{"--resume-from revision", "start importing at svn revision number"},
{"--max-rev revision", "stop importing at svn revision number"},
{"--dry-run", "don't actually write anything"},
+ {"--debug-rules", "print what rule is being used for each file"},
{"--commit-interval NUMBER", "if passed the cache will be flushed to git every NUMBER of commits"},
{"-h, --help", "show help"},
{"-v, --version", "show version"},
diff --git a/src/svn.cpp b/src/svn.cpp
index ba15a2c..5f3dc28 100644
--- a/src/svn.cpp
+++ b/src/svn.cpp
@@ -550,6 +550,8 @@ int SvnRevision::exportDispatch(const char *key, const svn_fs_path_change_t *cha
apr_hash_t *changes, const QString &current,
const Rules::Match &rule, apr_pool_t *pool)
{
+ if(CommandLineParser::instance()->contains( QLatin1String("debug-rules")))
+ qDebug() << " " << qPrintable(current) << "matched rule:" << rule.lineNumber << "(" << rule.rx.pattern() << ")";
switch (rule.action) {
case Rules::Match::Ignore:
// ignore rule