aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThiago Macieira <thiago@cassini.local.lan>2007-12-24 16:09:22 -0200
committerThiago Macieira <thiago@cassini.local.lan>2007-12-24 16:09:22 -0200
commit3ac8628a077203403eee092e7bf5d20f5931260e (patch)
tree44e45a97d123986214c93310a18408f76249d8fa
parentdcbaff4485f1b7e4223528e7e0b81c2367d71768 (diff)
downloadsvn2git-3ac8628a077203403eee092e7bf5d20f5931260e.tar
svn2git-3ac8628a077203403eee092e7bf5d20f5931260e.tar.gz
svn2git-3ac8628a077203403eee092e7bf5d20f5931260e.tar.bz2
svn2git-3ac8628a077203403eee092e7bf5d20f5931260e.tar.xz
svn2git-3ac8628a077203403eee092e7bf5d20f5931260e.zip
more information at the end of the revision export
-rw-r--r--src/svn.cpp12
1 files changed, 6 insertions, 6 deletions
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<const char *>(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;
}