Gerrit: Add topic in Push to Gerrit dialog

Change-Id: I4f2df0d40d7518b1a88595ad2ff52fd50b8ac92d
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
Orgad Shaneh
2013-04-29 22:37:17 +03:00
committed by Orgad Shaneh
parent 8f3a8d47c1
commit 711315f383
4 changed files with 25 additions and 2 deletions

View File

@@ -380,8 +380,12 @@ void GerritPlugin::push()
QStringList args;
args << dialog->selectedRemoteName();
args << QLatin1String("HEAD:refs/") + dialog->selectedPushType() +
QString target = QLatin1String("HEAD:refs/") + dialog->selectedPushType() +
QLatin1Char('/') + dialog->selectedRemoteBranchName();
const QString topic = dialog->selectedTopic();
if (!topic.isEmpty())
target += QLatin1Char('/') + topic;
args << target;
Git::Internal::GitPlugin::instance()->gitClient()->synchronousPush(topLevel, args);