e2f4c2f127861c3f93861c527d2e9da8cb036a69

When querying changes with the 'gerrit query' ssh command, and passing the --current-patch-set option, the current patch set is included even when it is not visible to the caller (for example when the patch set is a draft, and the caller cannot see drafts). This causes problems for example when the caller runs a query and then tries to perform some operation on the revisions of the current patchset revisions that were returned. For those revisions that are not visible, the operation will fail. The same is true when using the --patch-sets option. Add a check for patch set visibility, and do not add it in the results. Bug: Issue 4070 Change-Id: Id68969bc49a9412ae81f252fd2d846539d9022fa
Description
RETIRED, Gerrit as used by OpenStack