forked from qt-creator/qt-creator
Adapt to changes in 4.11
Change-Id: Ie02d61ecdb1a636ca4d21b1e5b09bde530c1fdca Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -265,7 +265,7 @@ Core::ShellCommand *FossilControl::createInitialCheckoutCommand(const QString &s
|
||||
<< extraOptions
|
||||
<< sourceUrl
|
||||
<< fossilFileNative;
|
||||
command->addJob(m_client->vcsBinary(), args, -1);
|
||||
command->addJob({m_client->vcsBinary(), args}, -1);
|
||||
}
|
||||
|
||||
// check out the cloned repository file into the working copy directory;
|
||||
@@ -274,20 +274,20 @@ Core::ShellCommand *FossilControl::createInitialCheckoutCommand(const QString &s
|
||||
QStringList args({"open", fossilFileNative});
|
||||
if (!checkoutBranch.isEmpty())
|
||||
args << checkoutBranch;
|
||||
command->addJob(m_client->vcsBinary(), args, -1);
|
||||
command->addJob({m_client->vcsBinary(), args}, -1);
|
||||
|
||||
// set user default to admin user if specified
|
||||
if (!isLocalRepository
|
||||
&& !adminUser.isEmpty()) {
|
||||
const QStringList args({ "user", "default", adminUser, "--user", adminUser});
|
||||
command->addJob(m_client->vcsBinary(), args, -1);
|
||||
command->addJob({m_client->vcsBinary(), args}, -1);
|
||||
}
|
||||
|
||||
// turn-off autosync if requested
|
||||
if (!isLocalRepository
|
||||
&& disableAutosync) {
|
||||
const QStringList args({"settings", "autosync", "off"});
|
||||
command->addJob(m_client->vcsBinary(), args, -1);
|
||||
command->addJob({m_client->vcsBinary(), args}, -1);
|
||||
}
|
||||
|
||||
return command;
|
||||
|
||||
@@ -617,7 +617,7 @@ void FossilPlugin::createRepository()
|
||||
// Find current starting directory
|
||||
QString directory;
|
||||
if (const ProjectExplorer::Project *currentProject = ProjectExplorer::ProjectTree::currentProject())
|
||||
directory = currentProject->document()->filePath().toFileInfo().absolutePath();
|
||||
directory = currentProject->projectDirectory().toString();
|
||||
// Prompt for a directory that is not under version control yet
|
||||
QWidget *mw = Core::ICore::mainWindow();
|
||||
do {
|
||||
|
||||
Reference in New Issue
Block a user