gerrit/gerrit-sshd
David Pursehouse 8dead439f5 Fix: gerrit review with --message does not work with no labels
If `gerrit review` is called with the --message option and there
are no review labels given, the message is not added on the change.

This bug was introduced as a side-effect of commit a65b695e, which
intended to prevent the same message being added twice when the
--abandon and --restore options are used.

Commit a65b695e removes the review message if there are no labels,
but this is not quite correct.  The message should only be removed
if there are no labels _and_ the --abandon or --restore option is
used.

Update the condition accordingly.

Bug: issue 1874
Change-Id: I062a557b0ea251af826d16cc48a431ea5047ceb1
2013-04-22 17:17:21 +00:00
..
.settings Suppress Eclipse warning "annotation should not be used as a superinterface" 2012-12-02 21:01:28 +09:00
src/main/java/com/google/gerrit/sshd Fix: gerrit review with --message does not work with no labels 2013-04-22 17:17:21 +00:00
.gitignore Add Intellij IDEA files to ignore list 2012-05-03 13:17:43 -07:00
pom.xml Merge branch 'stable-2.5' 2012-10-25 13:29:29 -07:00