i want to watch all java file in all-project,but when i use the below setting.i didn't get any reslut in my watched projectproject:All-Projectsfile:^.*\.javaand then i find i can not use any regular expression patterns in gerrit search,have i be short of anything in my gerrit?
--thanks !!
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en
On Friday, December 28, 2012 2:23:12 PM UTC+1, Edwin Kempin wrote:2012/12/20 Jong Ricky <z001...@gmail.com>i want to watch all java file in all-project,but when i use the below setting.i didn't get any reslut in my watched projectproject:All-Projectsfile:^.*\.javaand then i find i can not use any regular expression patterns in gerrit search,have i be short of anything in my gerrit?Not sure why the watching doesn't work, but the documentation [1] says that the 'file' operator is currently only supported for watching projects but not in the search bar.
[1] https://gerrit-review.googlesource.com/Documentation/user-search.html#file
I see the same issue as the OP. When I try file:^.*\.java or any other regular expression in the "Only If" field of the Watched Projects UI I don't get search results (gerrit version2.6-internal-3)--
--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en
---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
we met this issue also. after drill down the source code. found that the "allowFile" isn't set when create ChangeQueryBuilder in "IsWatchedByPredicate.java". then builder used default value "false" for it. when try to match, the builder throw exception boz allowFile=false but using file expression in the filter.we set allowFile as true and then the watched changes are there as espected.
2013/8/27 Zeng Lames <lezhi...@gmail.com>
we met this issue also. after drill down the source code. found that the "allowFile" isn't set when create ChangeQueryBuilder in "IsWatchedByPredicate.java". then builder used default value "false" for it. when try to match, the builder throw exception boz allowFile=false but using file expression in the filter.we set allowFile as true and then the watched changes are there as espected.It's by intension that the IsWatchedByPredicate doesn't allow the file operator. The file operator is very inefficient and this is why it is disabled for quries. You may get very bad performance by switching this one, see [1]. With the support of secondary indexes (e.g. Lucene) in master the performance of the file operator is drastically improved (since the file information is now stored in the index) so that there the file operator is allowed in queries (if secondary indexes are enabled).
i want to watch all java file in all-project,but when i use the below setting.i didn't get any reslut in my watched projectproject:All-Projectsfile:^.*\.javaand then i find i can not use any regular expression patterns in gerrit search,have i be short of anything in my gerrit?
thanks !!
--
--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en
---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.