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

Side by Side Diff: scm.py

Issue 502075: One liner fix. (Closed)
Patch Set: Created 11 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
« no previous file with comments | « no previous file | trychange.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2006-2009 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 """SCM-specific utility classes.""" 5 """SCM-specific utility classes."""
6 6
7 import os 7 import os
8 import re 8 import re
9 import subprocess 9 import subprocess
10 import sys 10 import sys
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 87
88 Args: 88 Args:
89 args: A sequence of command line parameters to be passed to svn. 89 args: A sequence of command line parameters to be passed to svn.
90 in_directory: The directory where svn is to be run. 90 in_directory: The directory where svn is to be run.
91 91
92 Raises: 92 Raises:
93 Error: An error occurred while running the svn command. 93 Error: An error occurred while running the svn command.
94 """ 94 """
95 c = [SVN.COMMAND] 95 c = [SVN.COMMAND]
96 c.extend(args) 96 c.extend(args)
97 97 # TODO(maruel): This is very gclient-specific.
98 gclient_utils.SubprocessCall(c, in_directory) 98 gclient_utils.SubprocessCall(c, in_directory)
99 99
100 @staticmethod 100 @staticmethod
101 def Capture(args, in_directory=None, print_error=True): 101 def Capture(args, in_directory=None, print_error=True):
102 """Runs svn, capturing output sent to stdout as a string. 102 """Runs svn, capturing output sent to stdout as a string.
103 103
104 Args: 104 Args:
105 args: A sequence of command line parameters to be passed to svn. 105 args: A sequence of command line parameters to be passed to svn.
106 in_directory: The directory where svn is to be run. 106 in_directory: The directory where svn is to be run.
107 107
(...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after
479 479
480 while True: 480 while True:
481 key = ReadOneItem('K') 481 key = ReadOneItem('K')
482 if not key: 482 if not key:
483 break 483 break
484 value = ReadOneItem('V') 484 value = ReadOneItem('V')
485 if not value: 485 if not value:
486 break 486 break
487 values[key] = value 487 values[key] = value
488 return values 488 return values
OLDNEW
« no previous file with comments | « no previous file | trychange.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698