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

Issue 11569018: Suggest owners for OWNERS files that only have per-file owners. (Closed)

Created:
8 years ago by Dirk Pranke
Modified:
8 years ago
Reviewers:
M-A Ruel
CC:
chromium-reviews, cmp+cc_chromium.org, M-A Ruel, iannucci+depot_tools_chromium.org, Wez
Visibility:
Public.

Description

Suggest owners for OWNERS files that only have per-file owners. If you were creating a new OWNERS file that only had per-file owners in it (and no catch-all owners for the whole directory), then we would not look for suggested owners in parent directories, and end up suggesting nothing. See https://chromiumcodereview.appspot.com/11555036/ for the CL that revealed this. Also, the unit tests were incorrectly using absolute paths in some cases, making the code less predictable; I've fixed the unit tests and added a check for this into owners.py (real changes never used absolute paths, just paths relative to the checkout root). R=maruel@chromium.org Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=173000

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+27 lines, -17 lines) Patch
M owners.py View 2 chunks +4 lines, -2 lines 0 comments Download
M testing_support/filesystem_mock.py View 1 chunk +3 lines, -0 lines 1 comment Download
M tests/owners_unittest.py View 1 chunk +20 lines, -15 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Dirk Pranke
8 years ago (2012-12-13 20:43:03 UTC) #1
M-A Ruel
lgtm https://codereview.chromium.org/11569018/diff/1/testing_support/filesystem_mock.py File testing_support/filesystem_mock.py (right): https://codereview.chromium.org/11569018/diff/1/testing_support/filesystem_mock.py#newcode50 testing_support/filesystem_mock.py:50: return path.startswith(self.sep) I assume you don't mind if ...
8 years ago (2012-12-13 23:25:15 UTC) #2
Dirk Pranke
On 2012/12/13 23:25:15, Marc-Antoine Ruel wrote: > lgtm > > https://codereview.chromium.org/11569018/diff/1/testing_support/filesystem_mock.py > File testing_support/filesystem_mock.py (right): ...
8 years ago (2012-12-13 23:28:31 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dpranke@chromium.org/11569018/1
8 years ago (2012-12-13 23:34:44 UTC) #4
commit-bot: I haz the power
8 years ago (2012-12-13 23:37:24 UTC) #5
Message was sent while issue was closed.
Change committed as 173000

Powered by Google App Engine
This is Rietveld 408576698