| OLD | NEW |
| 1 # Copyright 2013 The Chromium Authors. All rights reserved. | 1 # Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 from copy import deepcopy | 5 from copy import deepcopy |
| 6 | 6 |
| 7 from file_system import FileSystem, StatInfo, FileNotFoundError | 7 from file_system import FileSystem, StatInfo, FileNotFoundError |
| 8 from future import Future | 8 from future import Future |
| 9 | 9 |
| 10 class _AsyncFetchFuture(object): | 10 class _AsyncFetchFuture(object): |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 # No changes are made in this directory. | 148 # No changes are made in this directory. |
| 149 return self._host_file_system.Stat(path) | 149 return self._host_file_system.Stat(path) |
| 150 | 150 |
| 151 if stat_info.child_versions is not None: | 151 if stat_info.child_versions is not None: |
| 152 if filename: | 152 if filename: |
| 153 if filename in stat_info.child_versions: | 153 if filename in stat_info.child_versions: |
| 154 stat_info = StatInfo(stat_info.child_versions[filename]) | 154 stat_info = StatInfo(stat_info.child_versions[filename]) |
| 155 else: | 155 else: |
| 156 raise FileNotFoundError('%s was not in child versions' % filename) | 156 raise FileNotFoundError('%s was not in child versions' % filename) |
| 157 return stat_info | 157 return stat_info |
| 158 |
| 159 def GetIdentity(self): |
| 160 return '%s(%s,%s)' % (self.__class__.__name__, |
| 161 self._host_file_system.GetIdentity(), |
| 162 self._patcher.GetIdentity()) |
| OLD | NEW |