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:
Friedemann Kleint
2012-04-20 17:47:37 +02:00
parent 2b88fedc47
commit 2193915cca
16 changed files with 2153 additions and 3 deletions

View File

@@ -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()))