summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Withnall <philip.withnall@collabora.co.uk>2016-08-08 14:26:14 +0100
committerThibault Saunier <tsaunier@gnome.org>2016-08-09 14:37:34 -0400
commitd37add1b2fa5118163ed003ae6d575e69bcc95fb (patch)
tree44d19722d37905a6075f319106518064616ceeb2
parentc96fe8be1c87195fcc9f5fe6b4be3061fbdfafc1 (diff)
git-phab: Increase result limit on repository.query method
Some Phabricator installations have more than 100 repositories; and 100 is the default results limit on repository.query, which can cause git-phab to incorrectly not find the repository the user is trying to submit to. Ideally, we would be able to use the ‘remoteURIs’ parameter of repository.query to instantly select the repository we care about (as we essentially currently implement that search locally), but its semantics are unclear. Signed-off-by: Philip Withnall <philip.withnall@collabora.co.uk> Reviewed-by: Thibault Saunier <tsaunier@gnome.org> Differential Revision: https://phabricator.freedesktop.org/D1250
-rwxr-xr-xgit-phab2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-phab b/git-phab
index de5be23..d693842 100755
--- a/git-phab
+++ b/git-phab
@@ -567,7 +567,7 @@ Paste API Token from that page and press <enter>: """ % self.phabricator_uri)
567 assert(len(reply) == 1) 567 assert(len(reply) == 1)
568 self.phab_repo = reply[0] 568 self.phab_repo = reply[0]
569 else: 569 else:
570 for phab_repo in self.phabricator.repository.query(): 570 for phab_repo in self.phabricator.repository.query(limit=10000):
571 if self.phab_repo: 571 if self.phab_repo:
572 break 572 break
573 573