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

Method parseBzrRoot

plugins/bazaar/bazaarplugin.cpp:238–245  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

236}
237
238void BazaarPlugin::parseBzrRoot(DVcsJob* job)
239{
240 QString filename = job->dvcsCommand().at(2);
241 QString rootDirectory = job->output();
242 QString localFilename = QFileInfo(QUrl::fromLocalFile(filename).toLocalFile()).absoluteFilePath();
243 QString result = localFilename.mid(localFilename.indexOf(rootDirectory) + rootDirectory.length());
244 job->setResults(QVariant::fromValue(result));
245}
246
247VcsJob* BazaarPlugin::resolve(const QList<QUrl>& localLocations, IBasicVersionControl::RecursionMode recursion)
248{

Callers

nothing calls this directly

Calls 9

dvcsCommandMethod · 0.80
outputMethod · 0.80
toLocalFileMethod · 0.80
midMethod · 0.80
setResultsMethod · 0.80
QFileInfoClass · 0.50
atMethod · 0.45
indexOfMethod · 0.45
lengthMethod · 0.45

Tested by

no test coverage detected