Rebaseline-cl adds untracked files under LayoutTests directory |
|||
Issue descriptionIf there are some untracked files under LayoutTests directory (for local testing/debugging), webkit-patch rebaseline-cl will add them into the git index. The developer should manually remove them from git index to avoid them from being unexpectedly landed together with the CL.
,
Nov 11 2016
I like the simplicity too. I think an error message and quitting for untracked files under LayoutTests/ would suffice and additionally checking file name patterns would be perfect.
,
Nov 11 2016
I agree, I think that sounds good too.
,
Nov 11 2016
I also agree.
,
Nov 11 2016
Seems good to me, too.
,
Dec 21 2016
,
Dec 28 2016
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/99b0e4f3108df37cae3ed6664ca6f14b8a1fd056 commit 99b0e4f3108df37cae3ed6664ca6f14b8a1fd056 Author: qyearsley <qyearsley@chromium.org> Date: Wed Dec 28 03:48:20 2016 Only add unstaged baseline changes to the git index when rebaselining. Reason: Currently rebaseline-cl will add all files in LayoutTests/ to the index even if they are files unrelated to rebaseline-cl. In this CL: - In git.py, add a method unstaged_changes() which just lists currently unstaged changes. There were already methods for listing files that are different from HEAD; that includes staged changes, but I believe we don't want to abort if there are already staged changes to baselines, right? If that's not the case, then this CL could potentially be made simpler. - In rebaseline.py, add a method unstaged_baselines(), which just lists unstaged changes to baselines. Additionally, when adding files after rebaselining, only add staged baselines to the git index, not other files. - In rebaseline_cl.py, add a check for unstaged baselines at the start and abort with an error message if there are any. BUG= 662584 Review-Url: https://codereview.chromium.org/2590693002 Cr-Commit-Position: refs/heads/master@{#440830} [modify] https://crrev.com/99b0e4f3108df37cae3ed6664ca6f14b8a1fd056/third_party/WebKit/Tools/Scripts/webkitpy/common/checkout/scm/git.py [modify] https://crrev.com/99b0e4f3108df37cae3ed6664ca6f14b8a1fd056/third_party/WebKit/Tools/Scripts/webkitpy/common/checkout/scm/scm.py [modify] https://crrev.com/99b0e4f3108df37cae3ed6664ca6f14b8a1fd056/third_party/WebKit/Tools/Scripts/webkitpy/common/checkout/scm/scm_mock.py [modify] https://crrev.com/99b0e4f3108df37cae3ed6664ca6f14b8a1fd056/third_party/WebKit/Tools/Scripts/webkitpy/common/checkout/scm/scm_unittest.py [modify] https://crrev.com/99b0e4f3108df37cae3ed6664ca6f14b8a1fd056/third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/rebaseline.py [modify] https://crrev.com/99b0e4f3108df37cae3ed6664ca6f14b8a1fd056/third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/rebaseline_cl.py [modify] https://crrev.com/99b0e4f3108df37cae3ed6664ca6f14b8a1fd056/third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/rebaseline_cl_unittest.py [modify] https://crrev.com/99b0e4f3108df37cae3ed6664ca6f14b8a1fd056/third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/rebaseline_unittest.py
,
Dec 28 2016
Just committed the fix CL above, and then discovered that I never tried it on a branch with no changes :-/ Fix CL: https://codereview.chromium.org/2605933002
,
Dec 28 2016
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/bae815072a0150bfbeb398de594e505a87877a49 commit bae815072a0150bfbeb398de594e505a87877a49 Author: qyearsley <qyearsley@chromium.org> Date: Wed Dec 28 20:24:31 2016 In Git.unstaged_files, handle the case when there are no changes. This is a follow-up fix to a mistake in http://crrev.com/2590693002. BUG= 662584 Review-Url: https://codereview.chromium.org/2605933002 Cr-Commit-Position: refs/heads/master@{#440887} [modify] https://crrev.com/bae815072a0150bfbeb398de594e505a87877a49/third_party/WebKit/Tools/Scripts/webkitpy/common/checkout/scm/git.py [modify] https://crrev.com/bae815072a0150bfbeb398de594e505a87877a49/third_party/WebKit/Tools/Scripts/webkitpy/common/checkout/scm/scm_unittest.py
,
Dec 29 2016
Just confirmed, this now appears to be fixed. |
|||
►
Sign in to add a comment |
|||
Comment 1 by qyears...@chromium.org
, Nov 11 2016