diff options
| author | Yuchen Pei <id@ypei.org> | 2026-11-22 14:33:36 +1100 |
|---|---|---|
| committer | Yuchen Pei <id@ypei.org> | 2026-11-22 14:33:36 +1100 |
| commit | fb0660ee2e8223be1bbedb591ea1ffa27eedd74d (patch) | |
| tree | 71dc317d67a8575cc2752dd00bdbb1e7078951cb | |
| parent | d614eea91ca5717c2b0019dae8c85e6a24873f39 (diff) | |
Similar to buildbot-branch-changes-limit, to specify limit in requests
| -rw-r--r-- | buildbot-client.el | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/buildbot-client.el b/buildbot-client.el index 8d32c01..d381031 100644 --- a/buildbot-client.el +++ b/buildbot-client.el @@ -54,6 +54,15 @@ in relevant Changes API requests." :group 'buildbot :type '(choice (const :tag "Server default" nil) natnum)) +(defcustom buildbot-revision-changes-limit 10 + "The limit in a request to the Changes API filtered by revision. + +Only relevant when `buildbot-api-changes-direct-filter' is +non-nil. If set to nil, use server default, i.e. do not set limit +in relevant Changes API requests." + :group 'buildbot + :type '(choice (const :tag "Server default" nil) natnum)) + (defcustom buildbot-api-changes-limit 300 "The limit in a request to the Changes API. @@ -175,7 +184,8 @@ miss some changes associated to the required revision or branch." (if buildbot-api-changes-direct-filter (alist-get 'changes - (buildbot-api-change `((revision . ,revision)))) + (buildbot-api-change `((revision . ,revision) + (limit . ,buildbot-revision-changes-limit)))) (seq-filter (lambda (change) (equal revision (alist-get 'revision change))) |
