void MercurialPlugin::statusMulti() { const VCSBase::VCSBasePluginState state = currentState(); QTC_ASSERT(state.hasTopLevel(), return) m_client->status(state.topLevel()); }
void BazaarPlugin::logRepository() { const VCSBase::VCSBasePluginState state = currentState(); QTC_ASSERT(state.hasTopLevel(), return); QStringList extraOptions; extraOptions += QString("--limit=%1").arg(settings().intValue(BazaarSettings::logCountKey)); m_client->log(state.topLevel(), QStringList(), extraOptions); }
void MercurialPlugin::revertMulti() { const VCSBase::VCSBasePluginState state = currentState(); QTC_ASSERT(state.hasTopLevel(), return) RevertDialog reverter; if (reverter.exec() != QDialog::Accepted) return; m_client->revertAll(state.topLevel(), reverter.revision()); }
void MercurialPlugin::incoming() { const VCSBase::VCSBasePluginState state = currentState(); QTC_ASSERT(state.hasTopLevel(), return) SrcDestDialog dialog; dialog.setWindowTitle(tr("Incoming Source")); if (dialog.exec() != QDialog::Accepted) return; m_client->incoming(state.topLevel(), dialog.getRepositoryString()); }
void MercurialPlugin::update() { const VCSBase::VCSBasePluginState state = currentState(); QTC_ASSERT(state.hasTopLevel(), return) RevertDialog updateDialog; updateDialog.setWindowTitle(tr("Update")); if (updateDialog.exec() != QDialog::Accepted) return; m_client->update(state.topLevel(), updateDialog.revision()); }
void MercurialPlugin::push() { const VCSBase::VCSBasePluginState state = currentState(); QTC_ASSERT(state.hasTopLevel(), return) SrcDestDialog dialog; dialog.setWindowTitle(tr("Push Destination")); if (dialog.exec() != QDialog::Accepted) return; m_client->synchronousPush(state.topLevel(), dialog.getRepositoryString()); }
void BazaarPlugin::revertAll() { const VCSBase::VCSBasePluginState state = currentState(); QTC_ASSERT(state.hasTopLevel(), return); QDialog dialog; Ui::RevertDialog revertUi; revertUi.setupUi(&dialog); if (dialog.exec() != QDialog::Accepted) return; m_client->revertAll(state.topLevel(), revertUi.revisionLineEdit->text()); }
void BazaarPlugin::commit() { if (VCSBase::VCSBaseSubmitEditor::raiseSubmitEditor()) return; const VCSBase::VCSBasePluginState state = currentState(); QTC_ASSERT(state.hasTopLevel(), return); m_submitRepository = state.topLevel(); connect(m_client, SIGNAL(parsedStatus(QList<QPair<QString,QString> >)), this, SLOT(showCommitWidget(QList<QPair<QString,QString> >))); m_client->statusWithSignal(m_submitRepository); }
void MercurialPlugin::commit() { if (VCSBase::VCSBaseSubmitEditor::raiseSubmitEditor()) return; const VCSBase::VCSBasePluginState state = currentState(); QTC_ASSERT(state.hasTopLevel(), return) m_submitRepository = state.topLevel(); connect(m_client, SIGNAL(parsedStatus(QList<VCSBase::VCSBaseClient::StatusItem>)), this, SLOT(showCommitWidget(QList<VCSBase::VCSBaseClient::StatusItem>))); m_client->emitParsedStatus(m_submitRepository); }
void BazaarPlugin::pull() { const VCSBase::VCSBasePluginState state = currentState(); QTC_ASSERT(state.hasTopLevel(), return); PullOrPushDialog dialog(PullOrPushDialog::PullMode); if (dialog.exec() != QDialog::Accepted) return; BazaarClient::ExtraCommandOptions extraOptions; extraOptions[BazaarClient::RememberPullOrPushOptionId] = dialog.isRememberOptionEnabled(); extraOptions[BazaarClient::OverwritePullOrPushOptionId] = dialog.isOverwriteOptionEnabled(); extraOptions[BazaarClient::RevisionPullOrPushOptionId] = dialog.revision(); extraOptions[BazaarClient::LocalPullOptionId] = dialog.isLocalOptionEnabled(); m_client->synchronousPull(state.topLevel(), dialog.branchLocation(), extraOptions); }
void MercurialPlugin::import() { const VCSBase::VCSBasePluginState state = currentState(); QTC_ASSERT(state.hasTopLevel(), return) QFileDialog importDialog; importDialog.setFileMode(QFileDialog::ExistingFiles); importDialog.setViewMode(QFileDialog::Detail); if (importDialog.exec() != QDialog::Accepted) return; const QStringList fileNames = importDialog.selectedFiles(); m_client->import(state.topLevel(), fileNames); }
void BazaarPlugin::commit() { if (VCSBase::VCSBaseSubmitEditor::raiseSubmitEditor()) return; const VCSBase::VCSBasePluginState state = currentState(); QTC_ASSERT(state.hasTopLevel(), return); m_submitRepository = state.topLevel(); connect(m_client, SIGNAL(parsedStatus(QList<VCSBase::VCSBaseClient::StatusItem>)), this, SLOT(showCommitWidget(QList<VCSBase::VCSBaseClient::StatusItem>))); // The "--short" option allows to easily parse status output m_client->emitParsedStatus(m_submitRepository, QStringList(QLatin1String("--short"))); }
void BazaarPlugin::pull() { const VCSBase::VCSBasePluginState state = currentState(); QTC_ASSERT(state.hasTopLevel(), return); PullOrPushDialog dialog(PullOrPushDialog::PullMode); if (dialog.exec() != QDialog::Accepted) return; QStringList extraOptions; if (dialog.isRememberOptionEnabled()) extraOptions += QLatin1String("--remember"); if (dialog.isOverwriteOptionEnabled()) extraOptions += QLatin1String("--overwrite"); if (dialog.isLocalOptionEnabled()) extraOptions += QLatin1String("--local"); if (!dialog.revision().isEmpty()) extraOptions << QLatin1String("-r") << dialog.revision(); m_client->synchronousPull(state.topLevel(), dialog.branchLocation(), extraOptions); }
void BazaarPlugin::logRepository() { const VCSBase::VCSBasePluginState state = currentState(); QTC_ASSERT(state.hasTopLevel(), return); m_client->log(state.topLevel()); }
void MercurialPlugin::outgoing() { const VCSBase::VCSBasePluginState state = currentState(); QTC_ASSERT(state.hasTopLevel(), return) m_client->outgoing(state.topLevel()); }
void MercurialPlugin::diffRepository() { const VCSBase::VCSBasePluginState state = currentState(); QTC_ASSERT(state.hasTopLevel(), return) m_client->diff(state.topLevel()); }