Support change~branch~id in query syntax

It is odd that we describe this in the REST API as a canonical way of
referring to a change, but don't support it in the query syntax. Since
the query parser is also used by the /r handler, this fixes that there
as well.

Unlike in the ChangesCollection parser, allow prefix searches for the
id portion, to be consistent with other search operators.

Change-Id: I55e1cc33caf907cb0ff17dae7a81a46156b6f562
This commit is contained in:
Dave Borowitz
2014-12-10 08:19:32 -08:00
parent 665e7bda73
commit b364901445
3 changed files with 48 additions and 7 deletions

View File

@@ -188,6 +188,6 @@ fragment NON_WORD
| '?'
| '[' | ']'
| '{' | '}'
| '~'
// | '~' permit
)
;