Commit a8104d27 authored by maruel@chromium.org's avatar maruel@chromium.org

Add ability to look up other rietveld instances

TBR=dpranke@chromium.org
BUG=
TEST=


Review URL: http://codereview.chromium.org/7982048

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@102219 0039d316-1c4b-4281-b951-d872f2087c98
parent f13a4186
......@@ -16,7 +16,7 @@ import sys
import rietveld
def print_reviews(owner, reviewer, created_after, created_before):
def print_reviews(owner, reviewer, created_after, created_before, instance_url):
"""Prints issues with the filter.
Set with_messages=True to search() call bellow if you want each message too.
......@@ -24,7 +24,6 @@ def print_reviews(owner, reviewer, created_after, created_before):
You can then use remote.get_issue_properties(issue, True) to get the data per
issue.
"""
instance_url = 'codereview.chromium.org'
remote = rietveld.Rietveld(instance_url, None, None)
# See def search() in rietveld.py to see all the filters you can use.
......@@ -70,6 +69,7 @@ def main():
parser.add_option('-c', '--created_after')
parser.add_option('-C', '--created_before')
parser.add_option('-Q', '--last_quarter', action='store_true')
parser.add_option('-i', '--instance_url', default='codereview.chromium.org')
# Remove description formatting
parser.format_description = lambda x: parser.description
options, args = parser.parse_args()
......@@ -87,7 +87,8 @@ def main():
options.created_after, options.created_before)
print_reviews(
options.owner, options.reviewer,
options.created_after, options.created_before)
options.created_after, options.created_before,
options.instance_url)
return 0
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment