Change the OWNERS check to print files, not directories
Currently, when we run the OWNERS check, we print the list of directories that contain the relevant OWNERS files for any modified files in a change still needing approval. This has two problems: 1) if we bubble all the way up to the top level OWNERS, we print "" instead of "src/" or something more useful (bug 157191) 2) for OWNERS files that contain per-file set-noparent entries (like changes to IPC messages), this can be really confusing because an owner of other stuff in the directory might've approved things already. This change will now print the list of files in the CL that are still unapproved. This might be a lot more verbose (since you get N lines rather than 1 for N files in a given directory), but hopefully it'll be clearer in the two cases above. Also, this change takes care of some lingering clean-up in the code to rename some methods to be clearer. R=maruel@chromium.org BUG=157191 Review URL: https://chromiumcodereview.appspot.com/12314044 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@184219 0039d316-1c4b-4281-b951-d872f2087c98
Showing
Please
register
or
sign in
to comment