aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuchen Pei <id@ypei.org>2026-11-22 14:33:36 +1100
committerYuchen Pei <id@ypei.org>2026-11-22 14:33:36 +1100
commitfb0660ee2e8223be1bbedb591ea1ffa27eedd74d (patch)
tree71dc317d67a8575cc2752dd00bdbb1e7078951cb
parentd614eea91ca5717c2b0019dae8c85e6a24873f39 (diff)
Add buildbot-revision-changes-limit, default to 10HEADmaster
Similar to buildbot-branch-changes-limit, to specify limit in requests
-rw-r--r--buildbot-client.el12
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)))