| OLD | NEW |
| 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 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 import logging | |
| 6 import re | |
| 7 import posixpath | 5 import posixpath |
| 8 import xml.dom.minidom as xml | 6 import xml.dom.minidom as xml |
| 9 from xml.parsers.expat import ExpatError | 7 from xml.parsers.expat import ExpatError |
| 10 | 8 |
| 11 from appengine_url_fetcher import AppEngineUrlFetcher | 9 from appengine_url_fetcher import AppEngineUrlFetcher |
| 12 from docs_server_utils import StringIdentity | 10 from docs_server_utils import StringIdentity |
| 13 from file_system import FileSystem, FileNotFoundError, StatInfo, ToUnicode | 11 from file_system import FileSystem, FileNotFoundError, StatInfo, ToUnicode |
| 14 from future import Future | 12 from future import Future |
| 15 import svn_constants | 13 import svn_constants |
| 16 import url_constants | 14 import url_constants |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 if path.endswith('/'): | 160 if path.endswith('/'): |
| 163 return stat_info | 161 return stat_info |
| 164 if filename not in stat_info.child_versions: | 162 if filename not in stat_info.child_versions: |
| 165 raise FileNotFoundError('%s was not in child versions' % filename) | 163 raise FileNotFoundError('%s was not in child versions' % filename) |
| 166 return StatInfo(stat_info.child_versions[filename]) | 164 return StatInfo(stat_info.child_versions[filename]) |
| 167 | 165 |
| 168 def GetIdentity(self): | 166 def GetIdentity(self): |
| 169 # NOTE: no revision here, consider it just an implementation detail of the | 167 # NOTE: no revision here, consider it just an implementation detail of the |
| 170 # file version that is handled by Stat. | 168 # file version that is handled by Stat. |
| 171 return '@'.join((self.__class__.__name__, StringIdentity(self._svn_path))) | 169 return '@'.join((self.__class__.__name__, StringIdentity(self._svn_path))) |
| OLD | NEW |