aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTorgny Nyblom <kde@nyblom.org>2010-08-09 14:24:37 +0200
committerTorgny Nyblom <kde@nyblom.org>2010-08-09 14:24:37 +0200
commitfcc4d75bd88a45c4cb0fa371e4292dfeea0a4944 (patch)
tree807b142860e98188aa4ce29189e11d87488f1e0b /src
parent2b7ce4a0bcca10bcc6cdfb2cb35685ccaa10afe3 (diff)
parent03e7d518f73053d56b240917f3b0a412d30d47db (diff)
downloadsvn2git-fcc4d75bd88a45c4cb0fa371e4292dfeea0a4944.tar
svn2git-fcc4d75bd88a45c4cb0fa371e4292dfeea0a4944.tar.gz
svn2git-fcc4d75bd88a45c4cb0fa371e4292dfeea0a4944.tar.bz2
svn2git-fcc4d75bd88a45c4cb0fa371e4292dfeea0a4944.tar.xz
svn2git-fcc4d75bd88a45c4cb0fa371e4292dfeea0a4944.zip
Merge commit 'refs/merge-requests/1' of git://gitorious.org/~marcguenther/svn2git/marcguenther-svn2git into integration
Diffstat (limited to 'src')
-rw-r--r--src/repository.cpp2
-rw-r--r--src/ruleparser.cpp2
-rw-r--r--src/svn.cpp2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/repository.cpp b/src/repository.cpp
index bb7002e..be73df6 100644
--- a/src/repository.cpp
+++ b/src/repository.cpp
@@ -67,7 +67,7 @@ Repository::Repository(const Rules::Repository &rule)
fastImport.setWorkingDirectory(name);
if (!CommandLineParser::instance()->contains("dry-run")) {
if (!QDir(name).exists()) { // repo doesn't exist yet.
- qDebug() << "Creating new repositoryn" << name;
+ qDebug() << "Creating new repository" << name;
QDir::current().mkpath(name);
QProcess init;
init.setWorkingDirectory(name);
diff --git a/src/ruleparser.cpp b/src/ruleparser.cpp
index 905115c..9a83203 100644
--- a/src/ruleparser.cpp
+++ b/src/ruleparser.cpp
@@ -44,7 +44,7 @@ void Rules::load()
{
QFile file(filename);
if (!file.open(QIODevice::ReadOnly))
- return;
+ qFatal("Could not read the rules file: %s", qPrintable(filename));
// initialize the regexps we will use
QRegExp repoLine("create repository\\s+(\\S+)", Qt::CaseInsensitive);
diff --git a/src/svn.cpp b/src/svn.cpp
index 22ee151..2a9ffcb 100644
--- a/src/svn.cpp
+++ b/src/svn.cpp
@@ -325,7 +325,7 @@ static int recursiveDumpDir(Repository::Transaction *txn, svn_fs_root_t *fs_root
svn_fs_dirent_t *dirent = reinterpret_cast<svn_fs_dirent_t *>(value);
QByteArray entryName = pathname + '/' + dirent->name;
- QString entryFinalName = finalPathName + dirent->name;
+ QString entryFinalName = finalPathName + QString::fromUtf8(dirent->name);
if (dirent->kind == svn_node_dir) {
entryFinalName += '/';