Dear All,
In our case, direct push is allowed (which we plan to block sometime soon and forcing everyone to go via Gerrit verification).
So currently some commits are directly pushed and some goes via Gerrit verification.
I wanted to calculate how many went through gerrit? I am runing this query
ssh -p 29418 jenki...@gerrit.com gerrit query status:merged project:main branch:master before:2016-08-15 after:2016-07-14 --current-patch-set| grep revision:
But looks like above query only fetches 500 records, not more than that.
Can I know how can I fetch all the records? We are using Gerrit 2.12.3
Thanks
-Gaurav
--
--
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.
https://gerrit-documentation.storage.googleapis.com/Documentation/2.12.3/cmd-query.html#_description tells me:A query may be limited on the number of results it returns with the 'limit:' operator. If no limit is supplied an internal default limit is used to prevent explosion of the result set. To obtain results beyond the limit, the '--start' flag can be used to resume the query after skipping a certain number of results.Hope that helps,Jonathan
Le mar. 16 août 2016 à 10:40, Gaurav Negi <gaura...@gmail.com> a écrit :
--Dear All,
In our case, direct push is allowed (which we plan to block sometime soon and forcing everyone to go via Gerrit verification).
So currently some commits are directly pushed and some goes via Gerrit verification.
I wanted to calculate how many went through gerrit? I am runing this query
ssh -p 29418 jenki...@gerrit.com gerrit query status:merged project:main branch:master before:2016-08-15 after:2016-07-14 --current-patch-set| grep revision:
But looks like above query only fetches 500 records, not more than that.
Can I know how can I fetch all the records? We are using Gerrit 2.12.3
Thanks
-Gaurav
--
To unsubscribe, email repo-discuss+unsubscribe@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+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
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+unsubscribe@googlegroups.com.
[jenkins@jenkins-NOS-001 main]$ ssh -p 29418 jenki...@gerrit.com gerrit query status:merged project:main branch:master --current-patch-set limit:2000 | grep revision: | awk -F":" '{print $2}' | wc -l
500
[jenkins@jenkins-NOS-001 main]$ ssh -p 29418 jenki...@gerrit.com gerrit query status:merged project:main branch:master --current-patch-set --limit 2000 | grep revision: | awk -F":" '{print $2}' | wc -l
fatal: "--limit" is not a valid option
0
[jenkins@jenkins-NOS-001 main]$ ssh -p 29418 jenki...@gerrit.com gerrit query status:merged project:main branch:master --current-patch-set --limit:2000 | grep revision: | awk -F":" '{print $2}' | wc -l
fatal: "--limit:2000" is not a valid option
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.
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.
Thanks Jonathan and Dave,I already tried that. Still same result with limit:2000[jenkins@jenkins-NOS-001 main]$ ssh -p 29418 jenki...@gerrit.com gerrit query status:merged project:main branch:master --current-patch-set limit:2000 | grep revision: | awk -F":" '{print $2}' | wc -l
500
[jenkins@jenkins-NOS-001 main]$ ssh -p 29418 jenki...@gerrit.com gerrit query status:merged project:main branch:master --current-patch-set --limit 2000 | grep revision: | awk -F":" '{print $2}' | wc -l
fatal: "--limit" is not a valid option