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

Method ctxBranchManager

kdevplatform/vcs/dvcs/dvcsplugin.cpp:115–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

113}
114
115void DistributedVersionControlPlugin::ctxBranchManager()
116{
117 Q_D(DistributedVersionControlPlugin);
118
119 QList<QUrl> const & ctxUrlList = d->m_common->contextUrlList();
120 Q_ASSERT(!ctxUrlList.isEmpty());
121
122 if (!ICore::self()->documentController()->saveAllDocuments()) {
123 return; // canceled by the user
124 }
125
126 ScopedDialog<BranchManager> branchManager(stripPathToDir(ctxUrlList.front().toLocalFile()),
127 this, core()->uiController()->activeMainWindow());
128 branchManager->exec();
129}
130
131}
132

Callers

nothing calls this directly

Calls 9

stripPathToDirFunction · 0.85
contextUrlListMethod · 0.80
saveAllDocumentsMethod · 0.80
documentControllerMethod · 0.80
toLocalFileMethod · 0.80
uiControllerMethod · 0.80
execMethod · 0.80
isEmptyMethod · 0.45
activeMainWindowMethod · 0.45

Tested by

no test coverage detected