Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 ''' | 1 ''' |
| 2 Copyright 2011 Google Inc. | 2 Copyright 2011 Google Inc. |
|
epoger
2013/09/24 16:46:40
This file is "svn cp'd" from ../../tools .
Should
borenet
2013/09/25 15:08:08
Personally, I'd prefer that these get fixed sooner
epoger
2013/09/25 16:21:18
I made this depend on tools/svn.py. We already ha
| |
| 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 | 12 |
| (...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 165 def ExportBaseVersionOfFile(self, file_within_repo, dest_path): | 165 def ExportBaseVersionOfFile(self, file_within_repo, dest_path): |
| 166 """Retrieves a copy of the base version (what you would get if you ran | 166 """Retrieves a copy of the base version (what you would get if you ran |
| 167 'svn revert') of a file within the repository. | 167 'svn revert') of a file within the repository. |
| 168 | 168 |
| 169 @param file_within_repo path to the file within the repo whose base | 169 @param file_within_repo path to the file within the repo whose base |
| 170 version you wish to obtain | 170 version you wish to obtain |
| 171 @param dest_path destination to which to write the base content | 171 @param dest_path destination to which to write the base content |
| 172 """ | 172 """ |
| 173 self._RunCommand([SVN, 'export', '--revision', 'BASE', | 173 self._RunCommand([SVN, 'export', '--revision', 'BASE', |
| 174 file_within_repo, dest_path]) | 174 file_within_repo, dest_path]) |
| OLD | NEW |