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

Side by Side Diff: deps2git/svn_to_git_public.py

Issue 11312251: Switch upstream to git-on-borg. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/
Patch Set: Created 8 years, 1 month 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 #!/usr/bin/python 1 #!/usr/bin/python
2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 """SVN to GIT mapping for the public Chromium repositories.""" 6 """SVN to GIT mapping for the public Chromium repositories."""
7 7
8 import re 8 import re
9 9
10 10
11 GIT_HOST = 'http://git.chromium.org/' 11 GIT_HOST = 'http://chromium.googlesource.com/'
cmp 2012/11/14 21:59:41 Let's make this https:// instead.
szager1 2012/11/14 22:33:21 Done.
12 12
13 13
14 # Used by deps2git.ConvertDepsToGit() as overrides for SVN DEPS. Each entry 14 # Used by deps2git.ConvertDepsToGit() as overrides for SVN DEPS. Each entry
15 # maps a DEPS path to a DEPS variable identifying the Git hash for its 15 # maps a DEPS path to a DEPS variable identifying the Git hash for its
16 # respective repository. Variables are automatically transferred from SVN DEPS 16 # respective repository. Variables are automatically transferred from SVN DEPS
17 # to .DEPS.git and converted into variables by deps_utils.Varify(). 17 # to .DEPS.git and converted into variables by deps_utils.Varify().
18 DEPS_OVERRIDES = { 18 DEPS_OVERRIDES = {
19 'src/third_party/ffmpeg': 'ffmpeg_hash' 19 'src/third_party/ffmpeg': 'ffmpeg_hash'
20 } 20 }
21 21
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 return (path, GIT_HOST + 'chromium/deps/%s' % repo) 124 return (path, GIT_HOST + 'chromium/deps/%s' % repo)
125 125
126 # Subdirectories of the chromium deps/reference_builds directory. 126 # Subdirectories of the chromium deps/reference_builds directory.
127 match = re.match('/trunk/deps/reference_builds/(.*)', svn_url) 127 match = re.match('/trunk/deps/reference_builds/(.*)', svn_url)
128 if match: 128 if match:
129 repo = '%s.git' % match.group(1) 129 repo = '%s.git' % match.group(1)
130 return (path, GIT_HOST + 'chromium/reference_builds/%s' % repo) 130 return (path, GIT_HOST + 'chromium/reference_builds/%s' % repo)
131 131
132 # Nothing yet? Oops. 132 # Nothing yet? Oops.
133 print 'No match for %s' % svn_url 133 print 'No match for %s' % svn_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