| 113 | } |
| 114 | |
| 115 | void BranchesListModel::createBranch(const QString& baseBranch, const QString& newBranch) |
| 116 | { |
| 117 | Q_D(BranchesListModel); |
| 118 | |
| 119 | qCDebug(VCS) << "Creating " << baseBranch << " based on " << newBranch; |
| 120 | KDevelop::VcsRevision rev; |
| 121 | rev.setRevisionValue(baseBranch, KDevelop::VcsRevision::GlobalNumber); |
| 122 | KDevelop::VcsJob* branchJob = d->dvcsplugin->branch(d->repo, rev, newBranch); |
| 123 | |
| 124 | qCDebug(VCS) << "Adding new branch"; |
| 125 | if (branchJob->exec()) |
| 126 | appendRow(new BranchItem(newBranch)); |
| 127 | } |
| 128 | |
| 129 | void BranchesListModel::removeBranch(const QString& branch) |
| 130 | { |
nothing calls this directly
no test coverage detected