forked from qt-creator/qt-creator
Version control: Compile with QT_NO_CAST_FROM_ASCII.
Change-Id: I85c007045efdb207f397b42fbce7a554ac9c9819 Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
This commit is contained in:
committed by
Tobias Hunger
parent
cdae5f2102
commit
e2ace515e2
@@ -111,8 +111,9 @@ bool MercurialClient::synchronousClone(const QString &workingDir,
|
||||
}
|
||||
|
||||
// By now, there is no hgrc file -> create it
|
||||
Utils::FileSaver saver(workingDirectory.path()+"/.hg/hgrc");
|
||||
saver.write(QString("[paths]\ndefault = %1\n").arg(dstLocation).toUtf8());
|
||||
Utils::FileSaver saver(workingDirectory.path() + QLatin1String("/.hg/hgrc"));
|
||||
const QString hgrc = QLatin1String("[paths]\ndefault = ") + dstLocation + QLatin1Char('\n');
|
||||
saver.write(hgrc.toUtf8());
|
||||
if (!saver.finalize()) {
|
||||
VcsBase::VcsBaseOutputWindow::instance()->appendError(saver.errorString());
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user