| OLD | NEW |
| 1 #!/usr/bin/python | 1 #!/usr/bin/env python |
| 2 # Copyright (c) 2009 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 """Watchlists | 6 """Watchlists |
| 7 | 7 |
| 8 Watchlists is a mechanism that allow a developer (a "watcher") to watch over | 8 Watchlists is a mechanism that allow a developer (a "watcher") to watch over |
| 9 portions of code that he is interested in. A "watcher" will be cc-ed to | 9 portions of code that he is interested in. A "watcher" will be cc-ed to |
| 10 changes that modify that portion of code, thereby giving him an opportunity | 10 changes that modify that portion of code, thereby giving him an opportunity |
| 11 to make comments on codereview.chromium.org even before the change is | 11 to make comments on codereview.chromium.org even before the change is |
| 12 committed. | 12 committed. |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 print "Usage (from the base of repo):" | 122 print "Usage (from the base of repo):" |
| 123 print " %s [file-1] [file-2] ...." % argv[0] | 123 print " %s [file-1] [file-2] ...." % argv[0] |
| 124 return 1 | 124 return 1 |
| 125 wl = Watchlists(os.getcwd()) | 125 wl = Watchlists(os.getcwd()) |
| 126 watchers = wl.GetWatchersForPaths(argv[1:]) | 126 watchers = wl.GetWatchersForPaths(argv[1:]) |
| 127 print watchers | 127 print watchers |
| 128 | 128 |
| 129 | 129 |
| 130 if __name__ == '__main__': | 130 if __name__ == '__main__': |
| 131 main(sys.argv) | 131 main(sys.argv) |
| OLD | NEW |