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

Issue 10088002: Remove over 100 lines from checkperms.py. (Closed)

Created:
8 years, 8 months ago by M-A Ruel
Modified:
8 years, 7 months ago
Reviewers:
Lei Zhang
CC:
chromium-reviews, pam+watch_chromium.org
Visibility:
Public.

Description

Make the design api-based to make it cleaner and only process the SCM controlled files. Add check for shebang. Add check for windows executable. Add --bare option to ease mass processing of file with incorrect bit. R=thestig@chromium.org BUG= TEST= Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=135495

Patch Set 1 #

Patch Set 2 : Rebase #

Patch Set 3 : Use more specific filters #

Total comments: 8

Patch Set 4 : Reworked, tested on svn #

Patch Set 5 : Implemented quicker and dirtier svn implementation #

Total comments: 4

Patch Set 6 : Add performance optimization, skip shebang check on most files #

Patch Set 7 : Add shebang count #

Total comments: 4

Patch Set 8 : Remove the set #

Patch Set 9 : I had to trick it to work on the CQ due to path checkout difference #

Patch Set 10 : Tested manually on svn, better svn crawling logic #

Patch Set 11 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+402 lines, -277 lines) Patch
M tools/checkperms/checkperms.py View 1 2 3 4 5 6 7 8 9 2 chunks +402 lines, -277 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
M-A Ruel
Depends on a few in-flight CLs.
8 years, 8 months ago (2012-04-24 16:20:17 UTC) #1
Lei Zhang
https://chromiumcodereview.appspot.com/10088002/diff/1002/tools/checkperms/checkperms.py File tools/checkperms/checkperms.py (right): https://chromiumcodereview.appspot.com/10088002/diff/1002/tools/checkperms/checkperms.py#newcode35 tools/checkperms/checkperms.py:35: 'in', Why is the '.in' extension whitelisted? Also, 'in' ...
8 years, 8 months ago (2012-04-24 19:34:01 UTC) #2
M-A Ruel
https://chromiumcodereview.appspot.com/10088002/diff/1002/tools/checkperms/checkperms.py File tools/checkperms/checkperms.py (right): https://chromiumcodereview.appspot.com/10088002/diff/1002/tools/checkperms/checkperms.py#newcode35 tools/checkperms/checkperms.py:35: 'in', On 2012/04/24 19:34:01, Lei Zhang wrote: > Why ...
8 years, 8 months ago (2012-04-25 01:30:11 UTC) #3
Lei Zhang
https://chromiumcodereview.appspot.com/10088002/diff/1002/tools/checkperms/checkperms.py File tools/checkperms/checkperms.py (right): https://chromiumcodereview.appspot.com/10088002/diff/1002/tools/checkperms/checkperms.py#newcode114 tools/checkperms/checkperms.py:114: return bool(permission & os.stat(full_path).st_mode) On 2012/04/25 01:30:11, Marc-Antoine Ruel ...
8 years, 8 months ago (2012-04-25 04:01:02 UTC) #4
M-A Ruel
I modified the script heavily so the shebang check is skipped on most files. From ...
8 years, 8 months ago (2012-04-27 16:49:17 UTC) #5
Lei Zhang
On 2012/04/27 16:49:17, Marc-Antoine Ruel wrote: > I modified the script heavily so the shebang ...
8 years, 8 months ago (2012-04-27 20:51:40 UTC) #6
M-A Ruel
https://chromiumcodereview.appspot.com/10088002/diff/14001/tools/checkperms/checkperms.py File tools/checkperms/checkperms.py (right): https://chromiumcodereview.appspot.com/10088002/diff/14001/tools/checkperms/checkperms.py#newcode127 tools/checkperms/checkperms.py:127: IGNORED_FILENAMES = set(( On 2012/04/27 20:51:40, Lei Zhang wrote: ...
8 years, 7 months ago (2012-04-28 16:12:45 UTC) #7
M-A Ruel
Any issue with this CL?
8 years, 7 months ago (2012-05-01 01:09:19 UTC) #8
Lei Zhang
On 2012/05/01 01:09:19, Marc-Antoine Ruel wrote: > Any issue with this CL? Whoops, I knew ...
8 years, 7 months ago (2012-05-02 00:32:45 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/maruel@chromium.org/10088002/17002
8 years, 7 months ago (2012-05-02 12:44:21 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/maruel@chromium.org/10088002/26002
8 years, 7 months ago (2012-05-04 22:24:48 UTC) #11
commit-bot: I haz the power
8 years, 7 months ago (2012-05-05 00:45:13 UTC) #12
Change committed as 135495

Powered by Google App Engine
This is Rietveld 408576698