Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(79)

Side by Side Diff: Tools/Scripts/webkitpy/tool/commands/rebaseline.py

Issue 1308163009: Revert of Switch blink repo to use chromium-status.appspot.com (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « PRESUBMIT.py ('k') | codereview.settings » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2010 Google Inc. All rights reserved. 1 # Copyright (c) 2010 Google Inc. All rights reserved.
2 # 2 #
3 # Redistribution and use in source and binary forms, with or without 3 # Redistribution and use in source and binary forms, with or without
4 # modification, are permitted provided that the following conditions are 4 # modification, are permitted provided that the following conditions are
5 # met: 5 # met:
6 # 6 #
7 # * Redistributions of source code must retain the above copyright 7 # * Redistributions of source code must retain the above copyright
8 # notice, this list of conditions and the following disclaimer. 8 # notice, this list of conditions and the following disclaimer.
9 # * Redistributions in binary form must reproduce the above 9 # * Redistributions in binary form must reproduce the above
10 # copyright notice, this list of conditions and the following disclaimer 10 # copyright notice, this list of conditions and the following disclaimer
(...skipping 783 matching lines...) Expand 10 before | Expand all | Expand 10 after
794 last_output_time = time.time() 794 last_output_time = time.time()
795 _log.info(out) 795 _log.info(out)
796 796
797 if process.poll() == None: 797 if process.poll() == None:
798 _log.error('Command hung: %s' % subprocess_command) 798 _log.error('Command hung: %s' % subprocess_command)
799 return False 799 return False
800 return True 800 return True
801 801
802 # FIXME: Move this somewhere more general. 802 # FIXME: Move this somewhere more general.
803 def tree_status(self): 803 def tree_status(self):
804 blink_tree_status_url = "http://chromium-status.appspot.com/status" 804 blink_tree_status_url = "http://blink-status.appspot.com/status"
805 status = urllib2.urlopen(blink_tree_status_url).read().lower() 805 status = urllib2.urlopen(blink_tree_status_url).read().lower()
806 if status.find('closed') != -1 or status == "0": 806 if status.find('closed') != -1 or status == "0":
807 return 'closed' 807 return 'closed'
808 elif status.find('open') != -1 or status == "1": 808 elif status.find('open') != -1 or status == "1":
809 return 'open' 809 return 'open'
810 return 'unknown' 810 return 'unknown'
811 811
812 def execute(self, options, args, tool): 812 def execute(self, options, args, tool):
813 if tool.scm().executable_name == "svn": 813 if tool.scm().executable_name == "svn":
814 _log.error("Auto rebaseline only works with a git checkout.") 814 _log.error("Auto rebaseline only works with a git checkout.")
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
969 self._tool.scm().checkout_branch(old_branch_name_or_ref) 969 self._tool.scm().checkout_branch(old_branch_name_or_ref)
970 else: 970 else:
971 self._log_queue.put(self.QUIT_LOG) 971 self._log_queue.put(self.QUIT_LOG)
972 log_thread.join() 972 log_thread.join()
973 973
974 def execute(self, options, args, tool): 974 def execute(self, options, args, tool):
975 self._verbose = options.verbose 975 self._verbose = options.verbose
976 while True: 976 while True:
977 self._do_one_rebaseline() 977 self._do_one_rebaseline()
978 time.sleep(self.SLEEP_TIME_IN_SECONDS) 978 time.sleep(self.SLEEP_TIME_IN_SECONDS)
OLDNEW
« no previous file with comments | « PRESUBMIT.py ('k') | codereview.settings » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698