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

Side by Side Diff: checkdeps/graphdeps.py

Issue 2799113002: Move DEPS file docs into a README.md (Closed)
Patch Set: wording Created 3 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
« no previous file with comments | « checkdeps/checkdeps.py ('k') | 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 2013 The Chromium Authors. All rights reserved. 2 # Copyright 2013 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 """Dumps a graph of allowed and disallowed inter-module dependencies described 6 """Dumps a graph of allowed and disallowed inter-module dependencies described
7 by the DEPS files in the source tree. Supports DOT and PNG as the output format. 7 by the DEPS files in the source tree. Supports DOT and PNG as the output format.
8 8
9 Enables filtering and differential highlighting of parts of the graph based on 9 Enables filtering and differential highlighting of parts of the graph based on
10 the specified criteria. This allows for a much easier visual analysis of the 10 the specified criteria. This allows for a much easier visual analysis of the
11 dependencies, including answering questions such as "if a new source must 11 dependencies, including answering questions such as "if a new source must
12 depend on modules A, B, and C, what valid options among the existing modules 12 depend on modules A, B, and C, what valid options among the existing modules
13 are there to put it in." 13 are there to put it in."
14 14
15 See builddeps.py for a detailed description of the DEPS format. 15 See README.md for a detailed description of the DEPS format.
16 """ 16 """
17 17
18 import os 18 import os
19 import optparse 19 import optparse
20 import pipes 20 import pipes
21 import re 21 import re
22 import sys 22 import sys
23 23
24 from builddeps import DepsBuilder 24 from builddeps import DepsBuilder
25 from rules import Rule 25 from rules import Rule
(...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after
397 print 'exclude nodes : ', options.excl 397 print 'exclude nodes : ', options.excl
398 print 'highlight fanins of : ', options.hilite_fanins 398 print 'highlight fanins of : ', options.hilite_fanins
399 print 'highlight fanouts of: ', options.hilite_fanouts 399 print 'highlight fanouts of: ', options.hilite_fanouts
400 400
401 deps_grapher.DumpDependencies() 401 deps_grapher.DumpDependencies()
402 return 0 402 return 0
403 403
404 404
405 if '__main__' == __name__: 405 if '__main__' == __name__:
406 sys.exit(main()) 406 sys.exit(main())
OLDNEW
« no previous file with comments | « checkdeps/checkdeps.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698