forked from qt-creator/qt-creator
Start on a gerrit plugin as a sub-plugin of git.
- Add a gerrit window that shows a list of changes and buttons to display, apply or check out a change. - Uses the new Qt 5 Json API or the utils/json classes for Qt 4. Tested-by: Tobias Hunger <tobias.hunger@nokia.com> Tested-by: Orgad Shaneh <orgads@gmail.com> Change-Id: I14c6c2c2de8f95fb785752c7319be8638b386a1e Reviewed-by: Eike Ziller <eike.ziller@nokia.com> Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
This commit is contained in:
@@ -262,6 +262,15 @@ IVersionControl* VcsManager::findVersionControlForDirectory(const QString &input
|
||||
return allThatCanManage.first().second;
|
||||
}
|
||||
|
||||
QStringList VcsManager::repositories(const IVersionControl *vc) const
|
||||
{
|
||||
QStringList result;
|
||||
foreach (const VcsManagerPrivate::VcsInfo *vi, d->m_vcsInfoList)
|
||||
if (vi->versionControl == vc)
|
||||
result.push_back(vi->topLevel);
|
||||
return result;
|
||||
}
|
||||
|
||||
bool VcsManager::promptToDelete(const QString &fileName)
|
||||
{
|
||||
if (IVersionControl *vc = findVersionControlForDirectory(QFileInfo(fileName).absolutePath()))
|
||||
|
||||
Reference in New Issue
Block a user