abandon_stale: Use DETAILED_ACCOUNTS option

Without this option the change owner name is not included in the
results, and is then displayed as "Unknown" in the log output.

Change-Id: I995d1f8f303af968a6e31c68dee143b24150ec08
This commit is contained in:
David Pursehouse
2017-08-29 22:42:12 +09:00
parent 5a87d534ce
commit b7e7885711

View File

@@ -152,7 +152,7 @@ def _main():
query_terms += ["owner:%s" % options.owner]
query = "%20".join(query_terms)
while True:
q = query + "&n=%d&S=%d" % (step, offset)
q = query + "&o=DETAILED_ACCOUNTS&n=%d&S=%d" % (step, offset)
logging.debug("Query: %s", q)
url = "/changes/?q=" + q
result = gerrit.get(url)