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

Issue 11412006: Automatically sort headers in files affected by move_source_file.py (Closed)

Created:
8 years, 1 month ago by Jói
Modified:
8 years, 1 month ago
Reviewers:
Nico
CC:
chromium-reviews, pam+watch_chromium.org
Visibility:
Public.

Description

Automatically sort headers in files affected by move_source_file.py, and update full-path references in // comments. Sorting headers does not seem to affect timing appreciably in my test case, but searching for full-path references in comments does increase the time taken by around 20%. If the speed ever becomes a problem, this latter feature could be made optional, but for now it is probably simplest to leave it on all the time. BUG=None Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=169252

Patch Set 1 #

Patch Set 2 : Fix indent problem. #

Patch Set 3 : Fix comment. #

Patch Set 4 : Also find references in // comments. #

Patch Set 5 : Switch to simpler interface on MultiFileFindReplace. #

Patch Set 6 : Fix formatting. #

Patch Set 7 : Improve comments. #

Total comments: 4

Patch Set 8 : Respond to review comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+79 lines, -52 lines) Patch
M tools/git/move_source_file.py View 1 2 3 4 5 6 7 5 chunks +54 lines, -41 lines 0 comments Download
M tools/sort-headers.py View 1 2 3 chunks +25 lines, -11 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Jói
Nico, as discussed, this follow-up to http://codereview.chromium.org/11358216/ adds automatic sorting of headers in modified files. ...
8 years, 1 month ago (2012-11-15 15:29:51 UTC) #1
Jói
Updated this follow-up change, and its description, to include updating full-path references in // comments. ...
8 years, 1 month ago (2012-11-20 14:52:07 UTC) #2
Jói
Switched to the simpler interface you proposed for MultiFileFindReplace. Much nicer this way, and faster ...
8 years, 1 month ago (2012-11-21 14:04:26 UTC) #3
Nico
Nice! lgtm https://codereview.chromium.org/11412006/diff/5004/tools/git/move_source_file.py File tools/git/move_source_file.py (right): https://codereview.chromium.org/11412006/diff/5004/tools/git/move_source_file.py#newcode119 tools/git/move_source_file.py:119: for changed_file in files_with_changed_includes: I'd do `def ...
8 years, 1 month ago (2012-11-21 18:35:35 UTC) #4
Jói
https://codereview.chromium.org/11412006/diff/5004/tools/git/move_source_file.py File tools/git/move_source_file.py (right): https://codereview.chromium.org/11412006/diff/5004/tools/git/move_source_file.py#newcode119 tools/git/move_source_file.py:119: for changed_file in files_with_changed_includes: On 2012/11/21 18:35:36, Nico wrote: ...
8 years, 1 month ago (2012-11-22 09:42:50 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/joi@chromium.org/11412006/5005
8 years, 1 month ago (2012-11-22 09:43:13 UTC) #6
commit-bot: I haz the power
8 years, 1 month ago (2012-11-22 11:29:01 UTC) #7
Change committed as 169252

Powered by Google App Engine
This is Rietveld 408576698