diff options
author | cerf <delorme.hugues@gmail.com> | 2011-09-14 09:13:44 +0000 |
---|---|---|
committer | Tobias Hunger <tobias.hunger@nokia.com> | 2011-09-14 13:22:30 +0200 |
commit | 10b667ad588ddb85c858fe30e042e75bbea040a9 (patch) | |
tree | 04f580a851a5e8dc8051f2b65fcb620fbe65a057 /src/plugins/mercurial/clonewizard.cpp | |
parent | a67d8205b19784b1b8237b7d4ecd1c13ca09c547 (diff) | |
download | qt-creator-10b667ad588ddb85c858fe30e042e75bbea040a9.tar.gz |
vcsbase: add mechanism to ease management of VCS settings
Management of VCS settings was rather laborious (see BazaarSettings,
GitSettings, ...).
To overcome this, the base class VCSBaseClientSettings is now
equipped with a mechanism factorizing redundant code for VCS settings,
like operator=(), operator==(), writeSettings(), ...
Heir classes of VCSBaseClientSettings only need to declare the
settings (key + default value).
Bazaar and Mercurial plugins are impacted.
Change-Id: I7e4093a6d9476f3c8954f4d104f1b26ac185beb9
Merge-request: 2204
Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
Reviewed-on: http://codereview.qt-project.org/4889
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Diffstat (limited to 'src/plugins/mercurial/clonewizard.cpp')
-rw-r--r-- | src/plugins/mercurial/clonewizard.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/mercurial/clonewizard.cpp b/src/plugins/mercurial/clonewizard.cpp index f8c7212fa2..37a6f57230 100644 --- a/src/plugins/mercurial/clonewizard.cpp +++ b/src/plugins/mercurial/clonewizard.cpp @@ -86,13 +86,13 @@ QSharedPointer<VCSBase::AbstractCheckoutJob> CloneWizard::createJob(const QList< const MercurialSettings &settings = MercurialPlugin::instance()->settings(); - QStringList args = settings.standardArguments(); QString path = page->path(); QString directory = page->directory(); + QStringList args; args << QLatin1String("clone") << page->repository() << directory; *checkoutPath = path + QLatin1Char('/') + directory; VCSBase::ProcessCheckoutJob *job = new VCSBase::ProcessCheckoutJob; - job->addStep(settings.binary(), args, path); + job->addStep(settings.stringValue(MercurialSettings::binaryPathKey), args, path); return QSharedPointer<VCSBase::AbstractCheckoutJob>(job); } |