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

Side by Side Diff: gclient_scm.py

Issue 18150002: Set timeout before killing a process to 20 times the 30-second nag (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools/
Patch Set: Created 7 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | 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) 2012 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2012 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
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 114
115 115
116 # SCMWrapper base class 116 # SCMWrapper base class
117 117
118 class SCMWrapper(object): 118 class SCMWrapper(object):
119 """Add necessary glue between all the supported SCM. 119 """Add necessary glue between all the supported SCM.
120 120
121 This is the abstraction layer to bind to different SCM. 121 This is the abstraction layer to bind to different SCM.
122 """ 122 """
123 nag_timer = 30 123 nag_timer = 30
124 nag_max = 6 124 nag_max = 30
125 125
126 def __init__(self, url=None, root_dir=None, relpath=None): 126 def __init__(self, url=None, root_dir=None, relpath=None):
127 self.url = url 127 self.url = url
128 self._root_dir = root_dir 128 self._root_dir = root_dir
129 if self._root_dir: 129 if self._root_dir:
130 self._root_dir = self._root_dir.replace('/', os.sep) 130 self._root_dir = self._root_dir.replace('/', os.sep)
131 self.relpath = relpath 131 self.relpath = relpath
132 if self.relpath: 132 if self.relpath:
133 self.relpath = self.relpath.replace('/', os.sep) 133 self.relpath = self.relpath.replace('/', os.sep)
134 if self.relpath and self._root_dir: 134 if self.relpath and self._root_dir:
(...skipping 1194 matching lines...) Expand 10 before | Expand all | Expand 10 after
1329 new_command.append('--force') 1329 new_command.append('--force')
1330 if command[0] != 'checkout' and scm.SVN.AssertVersion('1.6')[0]: 1330 if command[0] != 'checkout' and scm.SVN.AssertVersion('1.6')[0]:
1331 new_command.extend(('--accept', 'theirs-conflict')) 1331 new_command.extend(('--accept', 'theirs-conflict'))
1332 elif options.manually_grab_svn_rev: 1332 elif options.manually_grab_svn_rev:
1333 new_command.append('--force') 1333 new_command.append('--force')
1334 if command[0] != 'checkout' and scm.SVN.AssertVersion('1.6')[0]: 1334 if command[0] != 'checkout' and scm.SVN.AssertVersion('1.6')[0]:
1335 new_command.extend(('--accept', 'postpone')) 1335 new_command.extend(('--accept', 'postpone'))
1336 elif command[0] != 'checkout' and scm.SVN.AssertVersion('1.6')[0]: 1336 elif command[0] != 'checkout' and scm.SVN.AssertVersion('1.6')[0]:
1337 new_command.extend(('--accept', 'postpone')) 1337 new_command.extend(('--accept', 'postpone'))
1338 return new_command 1338 return new_command
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698