Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(19)

Side by Side Diff: tools/svn.py

Issue 85343004: Temporary changes to test one-click revert. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | tools/tempfile » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
14 PROPERTY_MIMETYPE = 'svn:mime-type' 15 PROPERTY_MIMETYPE = 'svn:mime-type'
15 16
17
16 # Status types for GetFilesWithStatus() 18 # Status types for GetFilesWithStatus()
17 STATUS_ADDED = 0x01 19 STATUS_ADDED = 0x01
18 STATUS_DELETED = 0x02 20 STATUS_DELETED = 0x02
19 STATUS_MODIFIED = 0x04 21 STATUS_MODIFIED = 0x04
20 STATUS_NOT_UNDER_SVN_CONTROL = 0x08 22 STATUS_NOT_UNDER_SVN_CONTROL = 0x08
21 23
22 24
23 if os.name == 'nt': 25 if os.name == 'nt':
24 SVN = 'svn.bat' 26 SVN = 'svn.bat'
25 else: 27 else:
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 def ExportBaseVersionOfFile(self, file_within_repo, dest_path): 187 def ExportBaseVersionOfFile(self, file_within_repo, dest_path):
186 """Retrieves a copy of the base version (what you would get if you ran 188 """Retrieves a copy of the base version (what you would get if you ran
187 'svn revert') of a file within the repository. 189 'svn revert') of a file within the repository.
188 190
189 @param file_within_repo path to the file within the repo whose base 191 @param file_within_repo path to the file within the repo whose base
190 version you wish to obtain 192 version you wish to obtain
191 @param dest_path destination to which to write the base content 193 @param dest_path destination to which to write the base content
192 """ 194 """
193 self._RunCommand([SVN, 'export', '--revision', 'BASE', '--force', 195 self._RunCommand([SVN, 'export', '--revision', 'BASE', '--force',
194 file_within_repo, dest_path]) 196 file_within_repo, dest_path])
OLDNEW
« no previous file with comments | « no previous file | tools/tempfile » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698