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

Side by Side Diff: gclient_scm.py

Issue 652125: Require git version 1.6.6 (Closed)
Patch Set: Created 10 years, 10 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 | « 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) 2009 The Chromium Authors. All rights reserved. 1 # Copyright (c) 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 """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 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 158
159 All updated files will be appended to file_list. 159 All updated files will be appended to file_list.
160 160
161 Raises: 161 Raises:
162 Error: if can't get URL for relative path. 162 Error: if can't get URL for relative path.
163 """ 163 """
164 164
165 if args: 165 if args:
166 raise gclient_utils.Error("Unsupported argument(s): %s" % ",".join(args)) 166 raise gclient_utils.Error("Unsupported argument(s): %s" % ",".join(args))
167 167
168 self._CheckMinVersion("1.6") 168 self._CheckMinVersion("1.6.6")
169 169
170 default_rev = "refs/heads/master" 170 default_rev = "refs/heads/master"
171 url, revision = gclient_utils.SplitUrlRevision(self.url) 171 url, revision = gclient_utils.SplitUrlRevision(self.url)
172 rev_str = "" 172 rev_str = ""
173 if options.revision: 173 if options.revision:
174 # Override the revision number. 174 # Override the revision number.
175 revision = str(options.revision) 175 revision = str(options.revision)
176 if not revision: 176 if not revision:
177 revision = default_rev 177 revision = default_rev
178 178
(...skipping 636 matching lines...) Expand 10 before | Expand all | Expand 10 after
815 print("\n________ couldn't run \'%s\' in \'%s\':\nThe directory " 815 print("\n________ couldn't run \'%s\' in \'%s\':\nThe directory "
816 "does not exist." 816 "does not exist."
817 % (' '.join(command), path)) 817 % (' '.join(command), path))
818 # There's no file list to retrieve. 818 # There's no file list to retrieve.
819 else: 819 else:
820 self.RunAndGetFileList(options, command, path, file_list) 820 self.RunAndGetFileList(options, command, path, file_list)
821 821
822 def FullUrlForRelativeUrl(self, url): 822 def FullUrlForRelativeUrl(self, url):
823 # Find the forth '/' and strip from there. A bit hackish. 823 # Find the forth '/' and strip from there. A bit hackish.
824 return '/'.join(self.url.split('/')[:4]) + url 824 return '/'.join(self.url.split('/')[:4]) + url
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