| 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 11 matching lines...) Expand all Loading... |
| 22 # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | 22 # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
| 23 # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | 23 # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
| 24 # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | 24 # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
| 25 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 25 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| 26 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 26 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 27 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 28 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 29 | 29 |
| 30 import logging | 30 import logging |
| 31 | 31 |
| 32 from webkitpy.common.checkout.scm.git import Git | 32 from webkitpy.common.checkout.git import Git |
| 33 from webkitpy.common.config.builders import BUILDERS | 33 from webkitpy.common.config.builders import BUILDERS |
| 34 from webkitpy.common.net import web | 34 from webkitpy.common.net import web |
| 35 from webkitpy.common.net.buildbot import BuildBot | 35 from webkitpy.common.net.buildbot import BuildBot |
| 36 from webkitpy.common.system.system_host import SystemHost | 36 from webkitpy.common.system.system_host import SystemHost |
| 37 from webkitpy.layout_tests.builder_list import BuilderList | 37 from webkitpy.layout_tests.builder_list import BuilderList |
| 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 |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 self.environ['LANG'] = 'en_US.UTF-8' | 75 self.environ['LANG'] = 'en_US.UTF-8' |
| 76 self.environ['LC_MESSAGES'] = 'en_US.UTF-8' | 76 self.environ['LC_MESSAGES'] = 'en_US.UTF-8' |
| 77 self.environ['LC_ALL'] = '' | 77 self.environ['LC_ALL'] = '' |
| 78 | 78 |
| 79 def scm(self, path=None): | 79 def scm(self, path=None): |
| 80 if path: | 80 if path: |
| 81 return Git(cwd=path, executive=self.executive, filesystem=self.files
ystem) | 81 return Git(cwd=path, executive=self.executive, filesystem=self.files
ystem) |
| 82 if not self._scm: | 82 if not self._scm: |
| 83 self._scm = Git(filesystem=self.filesystem, executive=self.executive
) | 83 self._scm = Git(filesystem=self.filesystem, executive=self.executive
) |
| 84 return self._scm | 84 return self._scm |
| OLD | NEW |