Chromium Code Reviews

Unified Diff: rietveld.py

Issue 11365157: Hard code order field for rietveld.py::get_pending_issues (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: rietveld.py
diff --git a/rietveld.py b/rietveld.py
index a03fe77e3e8d216ca0e8590919d62d800ffa423a..80f414f645a94a926d0b06e3777811bbb6f9aae7 100644
--- a/rietveld.py
+++ b/rietveld.py
@@ -70,9 +70,9 @@ class Rietveld(object):
def get_pending_issues(self):
"""Returns an array of dict of all the pending issues on the server."""
- return json.loads(self.get(
- '/search?format=json&commit=2&closed=3&keys_only=True&limit=1000')
- )['results']
+ return json.loads(
+ self.get('/search?format=json&commit=2&closed=3&'
+ 'keys_only=True&limit=1000&order=__key__'))['results']
M-A Ruel 2012/11/08 21:04:30 Please add a TODO that it should be converted to u
def close_issue(self, issue):
"""Closes the Rietveld issue for this changelist."""
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine