Chromium Code Reviews| Index: presubmit_support.py |
| diff --git a/presubmit_support.py b/presubmit_support.py |
| index 38d29902752bc176f7175cd3fbc27cd190f3156f..7d87dab0a3c68a964481cbf1caecf0b862ec6fda 100755 |
| --- a/presubmit_support.py |
| +++ b/presubmit_support.py |
| @@ -51,6 +51,7 @@ except ImportError: |
| # Local imports. |
| import gclient_utils |
| +import owners |
| import presubmit_canned_checks |
| import scm |
| @@ -255,6 +256,11 @@ class InputApi(object): |
| # We carry the canned checks so presubmit scripts can easily use them. |
| self.canned_checks = presubmit_canned_checks |
| + # TODO(dpranke): figure out a list of all approved owners for a repo |
|
M-A Ruel
2011/02/24 16:25:57
I think owners are to respect to a specific Change
|
| + # in order to be able to handle wildcard OWNERS files? |
| + self.owners_db = owners.Database(change.RepositoryRoot(), |
| + all_owners=None, open=open, os_path=self.os_path) |
| + |
| def PresubmitLocalPath(self): |
| """Returns the local path of the presubmit script currently being run. |