Support comments option in query command

Query SSH command will show all comments if option --comments is used.
If --comments is used together with --patch-sets all inline comments
are included in the output.

Bug: issue 1063
Change-Id: If417204f18cdcfd3bc09a4a2eb2d54f4c1a8e8ff
This commit is contained in:
Mika Hamalainen
2011-07-22 14:21:28 +03:00
committed by Mika Hämäläinen
parent d46ee8bade
commit 0917a2b763
9 changed files with 150 additions and 19 deletions

View File

@@ -51,6 +51,11 @@ class Query extends BaseCommand {
processor.setIncludeApprovals(on);
}
@Option(name = "--comments", usage = "Include patch set and inline comments")
void setComments(boolean on) {
processor.setIncludeComments(on);
}
@Argument(index = 0, required = true, multiValued = true, metaVar = "QUERY", usage = "Query to execute")
private List<String> query;