|
|
Created:
5 years, 8 months ago by wychen Modified:
5 years, 7 months ago 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 Project:
tools Visibility:
Public. |
DescriptionDon't clean up after conflict in "git cl patch"
After crrev.com/896453002, if "git cl diff" ends up having conflict, it
would be cleaned up. However, if "git cl patch" ends up with conflict,
the user should still be able to manually resolve them.
BUG=438362
TEST=tests/git_cl_test.py
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=295051
Patch Set 1 #
Total comments: 4
Patch Set 2 : address sbc's comments and fix long lines #Messages
Total messages: 24 (10 generated)
wychen@chromium.org changed reviewers: + dpranke@chromium.org, sbc@chromium.org
PTAL
lgtm https://codereview.chromium.org/1091283004/diff/1/git_cl.py File git_cl.py (right): https://codereview.chromium.org/1091283004/diff/1/git_cl.py#newcode2587 git_cl.py:2587: # not to destroy users' data, make sure the tree is not dirty here. How about: PatchIssue should never be called with a dirty tree. Its up to the caller to check this, but just in case we assert here since the consequences of the caller not checking this could be dire. https://codereview.chromium.org/1091283004/diff/1/tests/git_cl_test.py File tests/git_cl_test.py (right): https://codereview.chromium.org/1091283004/diff/1/tests/git_cl_test.py#newcod... tests/git_cl_test.py:117: expected_args, result, exception = top nit: Do the raise here and avoid the "exception = None" line above? Actually, how about this: if len(top) > 2 and top[2]: raise top[2] expected_args, result = top[:2]
dpranke@chromium.org changed reviewers: + hinoka@chromium.org
Seems reasonable, but one of the infra people should also sanity-check this. +hinoka.
https://codereview.chromium.org/1091283004/diff/1/git_cl.py File git_cl.py (right): https://codereview.chromium.org/1091283004/diff/1/git_cl.py#newcode2587 git_cl.py:2587: # not to destroy users' data, make sure the tree is not dirty here. On 2015/04/20 23:32:16, Sam Clegg wrote: > How about: > > PatchIssue should never be called with a dirty tree. Its up to the > caller to check this, but just in case we assert here since the > consequences of the caller not checking this could be dire. Done. https://codereview.chromium.org/1091283004/diff/1/tests/git_cl_test.py File tests/git_cl_test.py (right): https://codereview.chromium.org/1091283004/diff/1/tests/git_cl_test.py#newcod... tests/git_cl_test.py:117: expected_args, result, exception = top On 2015/04/20 23:32:16, Sam Clegg wrote: > nit: Do the raise here and avoid the "exception = None" line above? > > Actually, how about this: > > if len(top) > 2 and top[2]: > raise top[2] > > expected_args, result = top[:2] Done.
The CQ bit was checked by wychen@chromium.org to run a CQ dry run
The patchset sent to the CQ was uploaded after l-g-t-m from sbc@chromium.org Link to the patchset: https://codereview.chromium.org/1091283004/#ps20001 (title: "address sbc's comments and fix long lines")
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1091283004/20001
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Presubmit check for 1091283004-20001 failed and returned exit status 1. Running presubmit commit checks ... Checking out rietveld... Running save-description-on-failure.sh Running push-basic.sh Running upstream.sh Running submit-from-new-dir.sh Running abandon.sh Running submodule-merge-test.sh Running upload-local-tracking-branch.sh Running hooks.sh Running post-dcommit-hook-test.sh Running upload-stale.sh Running patch.sh Running basic.sh ** Presubmit ERRORS ** Missing LGTM from an OWNER for these files: depot_tools/git_cl.py depot_tools/tests/git_cl_test.py Presubmit checks took 213.6s to calculate.
Hinoka, could you help sanity check this CL? Thanks!
hinoka@google.com changed reviewers: + hinoka@google.com
lgtm
yoichio@chromium.org changed reviewers: + yoichio@chromium.org
lgtm
The CQ bit was checked by wychen@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1091283004/20001
The CQ bit was unchecked by commit-bot@chromium.org
Presubmit check for 1091283004-20001 failed and returned exit status 1. Running presubmit commit checks ... Checking out rietveld... Running save-description-on-failure.sh Running push-basic.sh Running upstream.sh Running submit-from-new-dir.sh Running abandon.sh Running submodule-merge-test.sh Running upload-local-tracking-branch.sh Running hooks.sh Running post-dcommit-hook-test.sh Running upload-stale.sh Running patch.sh Running basic.sh ** Presubmit ERRORS ** Missing LGTM from an OWNER for these files: depot_tools/git_cl.py depot_tools/tests/git_cl_test.py Presubmit checks took 195.5s to calculate.
lgtm
The CQ bit was checked by wychen@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1091283004/20001
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as http://src.chromium.org/viewvc/chrome?view=rev&revision=295051 |