| OLD | NEW |
| 1 ''' | 1 ''' |
| 2 Copyright 2011 Google Inc. | 2 Copyright 2011 Google Inc. |
| 3 | 3 |
| 4 Use of this source code is governed by a BSD-style license that can be | 4 Use of this source code is governed by a BSD-style license that can be |
| 5 found in the LICENSE file. | 5 found in the LICENSE file. |
| 6 ''' | 6 ''' |
| 7 | 7 |
| 8 import fnmatch | 8 import fnmatch |
| 9 import os | 9 import os |
| 10 import re | 10 import re |
| 11 import subprocess | 11 import subprocess |
| 12 import threading | 12 import threading |
| 13 | 13 |
| 14 | |
| 15 PROPERTY_MIMETYPE = 'svn:mime-type' | 14 PROPERTY_MIMETYPE = 'svn:mime-type' |
| 16 | 15 |
| 17 | |
| 18 # Status types for GetFilesWithStatus() | 16 # Status types for GetFilesWithStatus() |
| 19 STATUS_ADDED = 0x01 | 17 STATUS_ADDED = 0x01 |
| 20 STATUS_DELETED = 0x02 | 18 STATUS_DELETED = 0x02 |
| 21 STATUS_MODIFIED = 0x04 | 19 STATUS_MODIFIED = 0x04 |
| 22 STATUS_NOT_UNDER_SVN_CONTROL = 0x08 | 20 STATUS_NOT_UNDER_SVN_CONTROL = 0x08 |
| 23 | 21 |
| 24 | 22 |
| 25 if os.name == 'nt': | 23 if os.name == 'nt': |
| 26 SVN = 'svn.bat' | 24 SVN = 'svn.bat' |
| 27 else: | 25 else: |
| (...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 187 def ExportBaseVersionOfFile(self, file_within_repo, dest_path): | 185 def ExportBaseVersionOfFile(self, file_within_repo, dest_path): |
| 188 """Retrieves a copy of the base version (what you would get if you ran | 186 """Retrieves a copy of the base version (what you would get if you ran |
| 189 'svn revert') of a file within the repository. | 187 'svn revert') of a file within the repository. |
| 190 | 188 |
| 191 @param file_within_repo path to the file within the repo whose base | 189 @param file_within_repo path to the file within the repo whose base |
| 192 version you wish to obtain | 190 version you wish to obtain |
| 193 @param dest_path destination to which to write the base content | 191 @param dest_path destination to which to write the base content |
| 194 """ | 192 """ |
| 195 self._RunCommand([SVN, 'export', '--revision', 'BASE', '--force', | 193 self._RunCommand([SVN, 'export', '--revision', 'BASE', '--force', |
| 196 file_within_repo, dest_path]) | 194 file_within_repo, dest_path]) |
| OLD | NEW |