diff options
author | Tobias Hunger <tobias.hunger@theqtcompany.com> | 2015-04-29 16:46:45 +0200 |
---|---|---|
committer | Tobias Hunger <tobias.hunger@theqtcompany.com> | 2015-05-11 13:22:49 +0000 |
commit | 94dc35694a3374ef785a6765730dfc1d9401075f (patch) | |
tree | b768a67347f96f6eb3972da56e885e95bd7c8ea6 /src/plugins/bazaar | |
parent | f21d2023e86e8ba9c0725852a79394ec80baaf16 (diff) | |
download | qt-creator-94dc35694a3374ef785a6765730dfc1d9401075f.tar.gz |
CheckoutWizards: Use IVersionControl::createInitialCheckoutCommand
Change-Id: I09dd38f66b9cad46d561493c2e27a833595d8728
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Diffstat (limited to 'src/plugins/bazaar')
-rw-r--r-- | src/plugins/bazaar/clonewizard.cpp | 20 |
1 files changed, 3 insertions, 17 deletions
diff --git a/src/plugins/bazaar/clonewizard.cpp b/src/plugins/bazaar/clonewizard.cpp index 8ee1a69e21..06092e989f 100644 --- a/src/plugins/bazaar/clonewizard.cpp +++ b/src/plugins/bazaar/clonewizard.cpp @@ -42,8 +42,6 @@ #include <utils/qtcassert.h> -#include <QDebug> - using namespace VcsBase; namespace Bazaar { @@ -54,17 +52,11 @@ namespace Internal { // -------------------------------------------------------------------- CloneWizard::CloneWizard(const Utils::FileName &path, QWidget *parent) : - BaseCheckoutWizard(path, parent) + BaseCheckoutWizard(Constants::VCS_ID_BAZAAR, parent) { setTitle(tr("Cloning")); setStartedStatus(tr("Cloning started...")); - const Core::IVersionControl *vc = BazaarPlugin::instance()->versionControl(); - if (!vc->isConfigured()) { - auto configPage = new VcsConfigurationPage; - configPage->setVersionControl(vc); - addPage(configPage); - } auto page = new CloneWizardPage; page->setPath(path.toString()); addPage(page); @@ -75,7 +67,6 @@ VcsCommand *CloneWizard::createCommand(Utils::FileName *checkoutDir) const CloneWizardPage *cwp = find<CloneWizardPage>(); QTC_ASSERT(cwp, return 0); - const VcsBaseClientSettings &settings = BazaarPlugin::instance()->client()->settings(); *checkoutDir = Utils::FileName::fromString(cwp->path() + QLatin1Char('/') + cwp->directory()); const CloneOptionsPanel *panel = cwp->cloneOptionsPanel(); @@ -96,14 +87,9 @@ VcsCommand *CloneWizard::createCommand(Utils::FileName *checkoutDir) extraOptions += QLatin1String("--no-tree"); if (!panel->revision().isEmpty()) extraOptions << QLatin1String("-r") << panel->revision(); - const BazaarClient *client = BazaarPlugin::instance()->client(); - QStringList args; - args << client->vcsCommandString(BazaarClient::CloneCommand) - << extraOptions << cwp->repository() << cwp->directory(); - auto command = new VcsCommand(cwp->path(), client->processEnvironment()); - command->addJob(settings.binaryPath(), args, -1); - return command; + return createCommandImpl(cwp->repository(), Utils::FileName::fromString(cwp->path()), + cwp->directory(), extraOptions); } } // namespace Internal |