Remove unused imports

Change-Id: I6066345e78290f7c2bb178006bc7a7545a6d1351
Fix: change list shows '1' instead of '-1' for label score.

If a user votes '-1', and then another user votes '+1' for a label, the
label will be shown as a red '1' in the change list instead of red '-1'.

Change the logic of setting the label score to handle this case properly.

Bug: Issue 2125
Change-Id: Icf32c11ddcda7a40ee162ac6829015b8fd1b3988
Fix documentation of query label operator

Two examples in the label query operator documentation were
using old syntax that does not work any more.

Update the examples with correct syntax.

Bug: Issue 2144
Change-Id: I53c04bc385603be1b4e62c94697146ab0bef8fb9
Merge branch 'stable-2.6' into stable-2.7

* stable-2.6:
  Fix documentation of query label operator
  Fix: change list shows '1' instead of '-1' for label score.
  Remove unused imports

Change-Id: I81307db450717eb11ca1ae1b5226fa98d518e60a
Update revision of reviewnotes plugin

This adds the commit:

- Correct example of export command usage in documentation

Change-Id: Ia60ad06ee1bd26e449a5f284dac8a2f9885346b8
Make links appear with the same color in Change UI

The links to files and the side by side options in the change
screen appear as "non-clickable", while all other links, e.g.
the "All Side-by-Side" and "All Unified", are blue to indicate
a link but the individual file links are black.

This gives the appearance that files are disabled and is not good.

On the other hand, if all links are blue, the colorful links would
distract the user too much.

This patch improves the UI a bit by making links in the Diff column
appear in the same color.

Change-Id: I1f50e0127c227132121b4ff4a7e2f33dd4064a9c
Merge "Make links appear with the same color in Change UI" into stable-2.6
Fix: Duplicate options of permitted_labels.

For a given LABEL, e.g. named Qualified, When
the SubmitRecord.Label value is like
'NOT_READY[Qualified: OK, Code-Review: NEED, Qualified: MAY]'
the Qualified options will show duplicated options on WebUI.

Reason: ListMultimap is used to keep permitted_labels and
its values. Fixed by replacing ListMultimap by SetMultimap.
Please note this change only affects permitted_labels.

Change-Id: I8c9683474650233cd131236e78281e67967c2a12
Merge branch 'stable-2.6' into stable-2.7

* stable-2.6:
  Fix: Duplicate options of permitted_labels.
  Make links appear with the same color in Change UI
  Update revision of reviewnotes plugin

Conflicts:
	plugins/reviewnotes

Change-Id: Ib88f7163a15a6fefd0f30f7eacef7b576aa79ab1
Verify access to source ref during add branch operation

Previously Gerrit didn't check access to source ref during add branch
operation. Because of that users could create a branch from any known
commit SHA1, even when they didn't have access to that commit.

This patch adds additional validation to RefControl.canCreate() that
will check that a given commit object belongs to branch that the user
already has access to.

Change-Id: I16d893e0ce584ae01825aadd083c0e0e41eb5610
Signed-off-by: Dariusz Luksza <dariusz@luksza.org>
Merge "Verify access to source ref during add branch operation" into stable-2.6
Fix compilation failure in RefControlTest

Change-Id: I8dc7856e577f2424ad9ddb909e3d6680775dcc87
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
Merge branch 'stable-2.6' into stable-2.7

* stable-2.6:
  Fix compilation failure in RefControlTest
  Verify access to source ref during add branch operation

Change-Id: I4a6c61e924baa44142ed0ade771a08bd20d09f79
Merge remote-tracking branch 'origin/stable-2.7' into stable-2.7-typo3

 1a8ce59 Fix compilation failure in RefControlTest
 3488eec Verify access to source ref during add branch operation
 1d0673b Fix: Duplicate options of permitted_labels.
 fbbf1d1 Make links appear with the same color in Change UI
 2803821 Update revision of reviewnotes plugin
 48933d3 Fix documentation of query label operator
 a7a3582 Fix: change list shows '1' instead of '-1' for label score.
 8b7e922 Remove unused imports