OLD | NEW |
1 # Copyright (c) 2010 Google Inc. All rights reserved. | 1 # Copyright (c) 2010 Google Inc. All rights reserved. |
2 # Copyright (c) 2009 Apple Inc. All rights reserved. | 2 # Copyright (c) 2009 Apple Inc. All rights reserved. |
3 # | 3 # |
4 # Redistribution and use in source and binary forms, with or without | 4 # Redistribution and use in source and binary forms, with or without |
5 # modification, are permitted provided that the following conditions are | 5 # modification, are permitted provided that the following conditions are |
6 # met: | 6 # met: |
7 # | 7 # |
8 # * Redistributions of source code must retain the above copyright | 8 # * Redistributions of source code must retain the above copyright |
9 # notice, this list of conditions and the following disclaimer. | 9 # notice, this list of conditions and the following disclaimer. |
10 # * Redistributions in binary form must reproduce the above | 10 # * Redistributions in binary form must reproduce the above |
(...skipping 24 matching lines...) Expand all Loading... |
35 from webkitpy.common.memoized import memoized | 35 from webkitpy.common.memoized import memoized |
36 from webkitpy.common.net import buildbot, web | 36 from webkitpy.common.net import buildbot, web |
37 from webkitpy.common.system.systemhost import SystemHost | 37 from webkitpy.common.system.systemhost import SystemHost |
38 from webkitpy.layout_tests.port.factory import PortFactory | 38 from webkitpy.layout_tests.port.factory import PortFactory |
39 | 39 |
40 | 40 |
41 _log = logging.getLogger(__name__) | 41 _log = logging.getLogger(__name__) |
42 | 42 |
43 | 43 |
44 class Host(SystemHost): | 44 class Host(SystemHost): |
| 45 |
45 def __init__(self): | 46 def __init__(self): |
46 SystemHost.__init__(self) | 47 SystemHost.__init__(self) |
47 self.web = web.Web() | 48 self.web = web.Web() |
48 | 49 |
49 self._scm = None | 50 self._scm = None |
50 | 51 |
51 # Everything below this line is WebKit-specific and belongs on a higher-
level object. | 52 # Everything below this line is WebKit-specific and belongs on a higher-
level object. |
52 self.buildbot = buildbot.BuildBot() | 53 self.buildbot = buildbot.BuildBot() |
53 | 54 |
54 # FIXME: Unfortunately Port objects are currently the central-dispatch o
bjects of the NRWT world. | 55 # FIXME: Unfortunately Port objects are currently the central-dispatch o
bjects of the NRWT world. |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 | 108 |
108 def scm(self): | 109 def scm(self): |
109 return self._scm | 110 return self._scm |
110 | 111 |
111 def scm_for_path(self, path): | 112 def scm_for_path(self, path): |
112 # FIXME: make scm() be a wrapper around this, and clean up the way | 113 # FIXME: make scm() be a wrapper around this, and clean up the way |
113 # callers call initialize_scm() (to remove patch_directories) and scm(). | 114 # callers call initialize_scm() (to remove patch_directories) and scm(). |
114 if sys.platform == "win32": | 115 if sys.platform == "win32": |
115 self._engage_awesome_windows_hacks() | 116 self._engage_awesome_windows_hacks() |
116 return SCMDetector(self.filesystem, self.executive).detect_scm_system(pa
th) | 117 return SCMDetector(self.filesystem, self.executive).detect_scm_system(pa
th) |
OLD | NEW |