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

Side by Side Diff: gclient_scm.py

Issue 3372001: Fix small nits. (Closed)
Patch Set: Created 10 years, 3 months 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 | « gclient.py ('k') | pylintrc » ('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) 2010 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2010 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 """Gclient-specific SCM-specific operations.""" 5 """Gclient-specific SCM-specific operations."""
6 6
7 import logging 7 import logging
8 import os 8 import os
9 import posixpath 9 import posixpath
10 import re 10 import re
11 import subprocess
12 import sys 11 import sys
13 import time 12 import time
14 13
15 import scm 14 import scm
16 import gclient_utils 15 import gclient_utils
17 16
18 17
19 class DiffFilterer(object): 18 class DiffFilterer(object):
20 """Simple class which tracks which file is being diffed and 19 """Simple class which tracks which file is being diffed and
21 replaces instances of its file name in the original and 20 replaces instances of its file name in the original and
(...skipping 938 matching lines...) Expand 10 before | Expand all | Expand 10 after
960 959
961 This method returns a new list to be used as a command.""" 960 This method returns a new list to be used as a command."""
962 new_command = command[:] 961 new_command = command[:]
963 if revision: 962 if revision:
964 new_command.extend(['--revision', str(revision).strip()]) 963 new_command.extend(['--revision', str(revision).strip()])
965 # --force was added to 'svn update' in svn 1.5. 964 # --force was added to 'svn update' in svn 1.5.
966 if ((options.force or options.manually_grab_svn_rev) and 965 if ((options.force or options.manually_grab_svn_rev) and
967 scm.SVN.AssertVersion("1.5")[0]): 966 scm.SVN.AssertVersion("1.5")[0]):
968 new_command.append('--force') 967 new_command.append('--force')
969 return new_command 968 return new_command
OLDNEW
« no previous file with comments | « gclient.py ('k') | pylintrc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698