Merge branch 'stable-2.6'
* stable-2.6: Enable expanding skipped lines even if 'Syntax Coloring' is off Fix: `gerrit review` with --message does not work with no labels Reword 'Working ...' message changes in 2.6 release notes TrivialRebase: Support custom labels MergeUtil: Remove legacy label ID TrivialRebase: Call gerrit review instead of approve
This commit is contained in:
@@ -218,10 +218,8 @@ public class ReviewCommand extends SshCommand {
|
||||
|
||||
private void applyReview(final ChangeControl ctl, final PatchSet patchSet,
|
||||
final PostReview.Input review) throws Exception {
|
||||
if (!review.labels.isEmpty()) {
|
||||
reviewProvider.get().apply(new RevisionResource(
|
||||
new ChangeResource(ctl), patchSet), review);
|
||||
}
|
||||
reviewProvider.get().apply(new RevisionResource(
|
||||
new ChangeResource(ctl), patchSet), review);
|
||||
}
|
||||
|
||||
private void approveOne(final PatchSet patchSet) throws Exception {
|
||||
@@ -246,7 +244,7 @@ public class ReviewCommand extends SshCommand {
|
||||
// If review labels are being applied, the comment will be included
|
||||
// on the review note. We don't need to add it again on the abandon
|
||||
// or restore comment.
|
||||
if (!review.labels.isEmpty()) {
|
||||
if (!review.labels.isEmpty() && (abandonChange || restoreChange)) {
|
||||
changeComment = null;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user