MCPcopy Create free account
hub / github.com/KDE/kdevelop / status

Method status

plugins/perforce/perforceplugin.cpp:229–244  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

227}
228
229KDevelop::VcsJob* PerforcePlugin::status(const QList<QUrl>& localLocations, KDevelop::IBasicVersionControl::RecursionMode /*recursion*/)
230{
231 if (localLocations.count() != 1) {
232 KMessageBox::error(nullptr, i18n("Please select only one item for this operation"));
233 return nullptr;
234 }
235
236 QFileInfo curFile(localLocations.front().toLocalFile());
237
238 auto* job = new DVcsJob(curFile.dir(), this, KDevelop::OutputJob::Verbose);
239 setEnvironmentForJob(job, curFile);
240 *job << m_perforceExecutable << "fstat" << curFile.fileName();
241 connect(job, &DVcsJob::readyForParsing, this, &PerforcePlugin::parseP4StatusOutput);
242
243 return job;
244}
245
246KDevelop::VcsJob* PerforcePlugin::revert(const QList<QUrl>& localLocations, KDevelop::IBasicVersionControl::RecursionMode /*recursion*/)
247{

Callers 5

branchNameReadyMethod · 0.45
parseP4fstatMethod · 0.45
getRepositoryNameMethod · 0.45
parseP4AnnotateOutputMethod · 0.45
testStatusMethod · 0.45

Calls 3

toLocalFileMethod · 0.80
countMethod · 0.45
fileNameMethod · 0.45

Tested by 1

testStatusMethod · 0.36