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

Side by Side Diff: tools/symsrc/source_index.py

Issue 13529016: Add more URL to the whitelist in source_index.py (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright (c) 2011 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2011 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 """Usage: <win-path-to-pdb.pdb> 6 """Usage: <win-path-to-pdb.pdb>
7 This tool will take a PDB on the command line, extract the source files that 7 This tool will take a PDB on the command line, extract the source files that
8 were used in building the PDB, query SVN for which repository and revision 8 were used in building the PDB, query SVN for which repository and revision
9 these files are at, and then finally write this information back into the PDB 9 these files are at, and then finally write this information back into the PDB
10 in a format that the debugging tools understand. This allows for automatic 10 in a format that the debugging tools understand. This allows for automatic
(...skipping 17 matching lines...) Expand all
28 import sys 28 import sys
29 import os 29 import os
30 import time 30 import time
31 import subprocess 31 import subprocess
32 import tempfile 32 import tempfile
33 33
34 # This serves two purposes. First, it acts as a whitelist, and only files 34 # This serves two purposes. First, it acts as a whitelist, and only files
35 # from repositories listed here will be source indexed. Second, it allows us 35 # from repositories listed here will be source indexed. Second, it allows us
36 # to map from one SVN URL to another, so we can map to external SVN servers. 36 # to map from one SVN URL to another, so we can map to external SVN servers.
37 REPO_MAP = { 37 REPO_MAP = {
38 "svn://chrome-svn/chrome": "http://src.chromium.org/svn", 38 "svn://chrome-svn/blink": "http://src.chromium.org/blink",
39 "svn://chrome-svn.corp.google.com/chrome": "http://src.chromium.org/svn", 39 "svn://chrome-svn/chrome": "http://src.chromium.org/chrome",
40 "svn://chrome-svn/multivm": "http://src.chromium.org/multivm",
41 "svn://chrome-svn/native_client": "http://src.chromium.org/native_client",
42 "svn://chrome-svn.corp.google.com/blink": "http://src.chromium.org/blink",
43 "svn://chrome-svn.corp.google.com/chrome": "http://src.chromium.org/chrome",
44 "svn://chrome-svn.corp.google.com/multivm": "http://src.chromium.org/multivm",
45 "svn://chrome-svn.corp.google.com/native_client":
46 "http://src.chromium.org/native_client",
47 "svn://svn-mirror.golo.chromium.org/blink": "http://src.chromium.org/blink",
48 "svn://svn-mirror.golo.chromium.org/chrome": "http://src.chromium.org/chrome",
49 "svn://svn-mirror.golo.chromium.org/multivm":
50 "http://src.chromium.org/multivm",
51 "svn://svn-mirror.golo.chromium.org/native_client":
52 "http://src.chromium.org/native_client",
40 "http://v8.googlecode.com/svn": None, 53 "http://v8.googlecode.com/svn": None,
41 "http://google-breakpad.googlecode.com/svn": None, 54 "http://google-breakpad.googlecode.com/svn": None,
42 "http://googletest.googlecode.com/svn": None, 55 "http://googletest.googlecode.com/svn": None,
43 "http://open-vcdiff.googlecode.com/svn": None, 56 "http://open-vcdiff.googlecode.com/svn": None,
44 "http://google-url.googlecode.com/svn": None, 57 "http://google-url.googlecode.com/svn": None,
45 } 58 }
46 59
47 60
48 def FindFile(filename): 61 def FindFile(filename):
49 """Return the full windows path to a file in the same dir as this code.""" 62 """Return the full windows path to a file in the same dir as this code."""
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 verbose = False 217 verbose = False
205 if len(sys.argv) == 3: 218 if len(sys.argv) == 3:
206 verbose = (sys.argv[2] == '-v') 219 verbose = (sys.argv[2] == '-v')
207 220
208 UpdatePDB(sys.argv[1], verbose=verbose) 221 UpdatePDB(sys.argv[1], verbose=verbose)
209 return 0 222 return 0
210 223
211 224
212 if __name__ == '__main__': 225 if __name__ == '__main__':
213 sys.exit(main()) 226 sys.exit(main())
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