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

Issue 1897153003: Convert cpplint.py to work with nested git repositories. (Closed)

Created:
4 years, 8 months ago by sdefresne
Modified:
4 years, 8 months ago
Reviewers:
iannucci, skym
CC:
chromium-reviews, dpranke+depot_tools_chromium.org, iannucci+depot_tools_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Convert cpplint.py to work with nested git repositories. Chrome on iOS downstream repository tracks Chromium via DEPS and wants to use cpplint canned presubmit check but the cpplint.py errors due at the include guard as it stops at the inner most git repository. Change cpplint.py to look for the outermost git repository when looking for the repository root. BUG=598090 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=300085

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -6 lines) Patch
M cpplint.py View 1 chunk +7 lines, -6 lines 0 comments Download

Messages

Total messages: 17 (6 generated)
sdefresne
Please take a look.
4 years, 8 months ago (2016-04-19 16:27:24 UTC) #2
iannucci
+someone who's actually ever looked at this file
4 years, 8 months ago (2016-04-19 17:01:15 UTC) #4
iannucci
but other than that lgtm
4 years, 8 months ago (2016-04-19 17:02:19 UTC) #5
skym
lgtm
4 years, 8 months ago (2016-04-20 18:52:13 UTC) #6
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1897153003/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1897153003/1
4 years, 8 months ago (2016-04-21 08:25:54 UTC) #8
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 8 months ago (2016-04-21 08:28:05 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1897153003/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1897153003/1
4 years, 8 months ago (2016-04-21 16:57:51 UTC) #12
commit-bot: I haz the power
Committed patchset #1 (id:1) as http://src.chromium.org/viewvc/chrome?view=rev&revision=300085
4 years, 8 months ago (2016-04-21 17:00:23 UTC) #14
Raphael Kubo da Costa (rakuco)
Commenting here since I don't have access to the bug. This broke our (Crosswalk) downstream ...
4 years, 8 months ago (2016-04-22 09:46:14 UTC) #15
Raphael Kubo da Costa (rakuco)
On 2016/04/22 09:46:14, Raphael Kubo da Costa (rakuco) wrote: > return 'chrome/' + super(PrefixedFileInfo, self).RepositoryName() ...
4 years, 8 months ago (2016-04-22 09:47:06 UTC) #16
kjellander_chromium
4 years, 8 months ago (2016-04-22 19:26:18 UTC) #17
Message was sent while issue was closed.
A revert of this CL (patchset #1 id:1) has been created in
https://codereview.chromium.org/1919483002/ by kjellander@chromium.org.

The reason for reverting is: This breaks WebRTC presubmit on the buildbots (due
to /b/build being a Git repo, which in turn contains the checkout). See 
https://bugs.chromium.org/p/webrtc/issues/detail?id=5818 for more details.

It seems it also broke other projects (rakuco's comment #15).

.

Powered by Google App Engine
This is Rietveld 408576698