From: Thiago Macieira Date: Mon, 24 Dec 2007 18:09:22 +0000 (-0200) Subject: more information at the end of the revision export X-Git-Url: http://andersk.mit.edu/gitweb/svn-all-fast-export.git/commitdiff_plain/3ac8628a077203403eee092e7bf5d20f5931260e more information at the end of the revision export --- diff --git a/src/svn.cpp b/src/svn.cpp index 826dd6c..8892cdc 100644 --- a/src/svn.cpp +++ b/src/svn.cpp @@ -341,6 +341,7 @@ int SvnPrivate::exportRevision(int revnum) void *value; apr_hash_this(i, &vkey, NULL, &value); const char *key = reinterpret_cast(vkey); + QString current = QString::fromUtf8(key); // was this copied from somewhere? svn_revnum_t rev_from; @@ -358,13 +359,10 @@ int SvnPrivate::exportRevision(int revnum) continue; } + current += '/'; qDebug() << " " << key << "was copied from" << path_from; } - QString current = QString::fromUtf8(key); - if (is_dir) - current += '/'; - // find the first rule that matches this pathname MatchRuleList::ConstIterator match = findMatchRule(matchRules, revnum, current); if (match != matchRules.constEnd()) { @@ -467,8 +465,10 @@ int SvnPrivate::exportRevision(int revnum) } revpool.clear(); - if (transactions.isEmpty()) + if (transactions.isEmpty()) { + printf("nothing to do\n"); return EXIT_SUCCESS; // no changes? + } // now create the commit apr_hash_t *revprops; @@ -497,6 +497,6 @@ int SvnPrivate::exportRevision(int revnum) delete txn; } - printf("\n"); + printf("done\n"); return EXIT_SUCCESS; }