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

Issue 11262057: git_cl sanity checks (Closed)

Created:
8 years, 1 month ago by Isaac (away)
Modified:
8 years, 1 month ago
Reviewers:
cmp, cjhopman, iannucci, M-A Ruel
CC:
chromium-reviews, Dirk Pranke, cmp+cc_chromium.org
Visibility:
Public.

Description

git_cl sanity checks Added checks: - Block upload of a diff from sha not in current branch (this includes tracking against an unrebased local master) - Block upload of a diff containing shas from origin/master (should never happen) - Use explicit calls to git merge-base instead of calling git diff with "<branch>..." which implicitly uses merge-base. BUG=157503 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=165887

Patch Set 1 : #

Patch Set 2 : Moving refactors to separate CL #

Total comments: 3

Patch Set 3 : Use explicit calls to merge-base in diff commands #

Total comments: 4

Patch Set 4 : revert scm changes, add doc #

Total comments: 1

Patch Set 5 : #

Patch Set 6 : #

Total comments: 8

Patch Set 7 : #

Patch Set 8 : #

Total comments: 11

Patch Set 9 : #

Patch Set 10 : Switch config key 'depottools' -> 'gitcl' #

Total comments: 6

Patch Set 11 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+120 lines, -38 lines) Patch
M git_cl.py View 1 2 3 4 5 6 7 8 9 10 11 chunks +70 lines, -17 lines 0 comments Download
M tests/git_cl_test.py View 1 2 3 4 5 6 7 8 9 12 chunks +50 lines, -21 lines 0 comments Download

Messages

Total messages: 35 (0 generated)
Isaac (away)
8 years, 1 month ago (2012-10-26 21:55:36 UTC) #1
Isaac (away)
Moving refactors to separate CL. Note that this is failing some unit tests so need ...
8 years, 1 month ago (2012-10-26 22:33:45 UTC) #2
M-A Ruel
https://chromiumcodereview.appspot.com/11262057/diff/3002/git_cl.py File git_cl.py (right): https://chromiumcodereview.appspot.com/11262057/diff/3002/git_cl.py#newcode171 git_cl.py:171: if upstream_sha != common_ancestor: I disagree with this check. ...
8 years, 1 month ago (2012-10-27 01:29:41 UTC) #3
Isaac (away)
https://chromiumcodereview.appspot.com/11262057/diff/3002/git_cl.py File git_cl.py (right): https://chromiumcodereview.appspot.com/11262057/diff/3002/git_cl.py#newcode171 git_cl.py:171: if upstream_sha != common_ancestor: On 2012/10/27 01:29:41, Marc-Antoine Ruel ...
8 years, 1 month ago (2012-10-27 01:32:54 UTC) #4
M-A Ruel
Also, I'd prefer a proper docstring. I like a sanity check idea though https://chromiumcodereview.appspot.com/11262057/diff/3002/git_cl.py File ...
8 years, 1 month ago (2012-10-27 01:37:23 UTC) #5
Isaac (away)
I was expecting cl.GetUpstreamBranch() to produce the same sha that git cl upload was diffing ...
8 years, 1 month ago (2012-10-27 02:12:21 UTC) #6
M-A Ruel
On 2012/10/27 02:12:21, Isaac wrote: > I was expecting cl.GetUpstreamBranch() to produce the same sha ...
8 years, 1 month ago (2012-10-28 01:17:33 UTC) #7
Isaac (away)
ptal
8 years, 1 month ago (2012-10-28 20:37:19 UTC) #8
M-A Ruel
https://chromiumcodereview.appspot.com/11262057/diff/12002/git_cl.py File git_cl.py (right): https://chromiumcodereview.appspot.com/11262057/diff/12002/git_cl.py#newcode167 git_cl.py:167: def git_cl_sanity_checks(upstream_git_obj): Would still like a oneliner docstring for ...
8 years, 1 month ago (2012-10-28 20:53:02 UTC) #9
Isaac (away)
https://chromiumcodereview.appspot.com/11262057/diff/12002/git_cl.py File git_cl.py (right): https://chromiumcodereview.appspot.com/11262057/diff/12002/git_cl.py#newcode167 git_cl.py:167: def git_cl_sanity_checks(upstream_git_obj): On 2012/10/28 20:53:02, Marc-Antoine Ruel wrote: > ...
8 years, 1 month ago (2012-10-28 21:16:42 UTC) #10
M-A Ruel
https://chromiumcodereview.appspot.com/11262057/diff/11003/git_cl.py File git_cl.py (right): https://chromiumcodereview.appspot.com/11262057/diff/11003/git_cl.py#newcode183 git_cl.py:183: ['rev-list', '^%s' % upstream_sha, 'remotes/origin/master']).splitlines() I don't understand why ...
8 years, 1 month ago (2012-10-28 22:29:51 UTC) #11
Isaac (away)
git_cl uploads, by default, commits in the local branch that are not in the tracking ...
8 years, 1 month ago (2012-10-29 00:16:40 UTC) #12
M-A Ruel
On 2012/10/29 00:16:40, Isaac wrote: > git_cl uploads, by default, commits in the local branch ...
8 years, 1 month ago (2012-10-29 00:31:37 UTC) #13
Isaac (away)
That sounds a bit complex and I'm not sure would cover people who use personal ...
8 years, 1 month ago (2012-10-29 01:23:36 UTC) #14
Isaac (away)
ptal
8 years, 1 month ago (2012-11-01 01:02:33 UTC) #15
M-A Ruel
https://chromiumcodereview.appspot.com/11262057/diff/24002/git_cl.py File git_cl.py (right): https://chromiumcodereview.appspot.com/11262057/diff/24002/git_cl.py#newcode67 git_cl.py:67: return RunCommand(['git'] + args, **kwargs).strip() I'd prefer this to ...
8 years, 1 month ago (2012-11-01 13:46:41 UTC) #16
Isaac (away)
I haven't uploaded fixes yet, will ping thread when I do. I'm fixing a number ...
8 years, 1 month ago (2012-11-01 21:33:40 UTC) #17
Isaac (away)
PTAL, unit tests fixed, finally.
8 years, 1 month ago (2012-11-01 23:00:45 UTC) #18
M-A Ruel
https://chromiumcodereview.appspot.com/11262057/diff/31002/git_cl.py File git_cl.py (right): https://chromiumcodereview.appspot.com/11262057/diff/31002/git_cl.py#newcode524 git_cl.py:524: code, remote_branch = RunGitWithCode(['config', 'depottools.remotebranch']) I don't understand, there's ...
8 years, 1 month ago (2012-11-01 23:59:11 UTC) #19
iannucci
https://chromiumcodereview.appspot.com/11262057/diff/31002/git_cl.py File git_cl.py (right): https://chromiumcodereview.appspot.com/11262057/diff/31002/git_cl.py#newcode509 git_cl.py:509: def GitSanityChecks(self, upstream_git_obj): Maybe there's a better name for ...
8 years, 1 month ago (2012-11-02 00:30:05 UTC) #20
Isaac (away)
re M-A: http://codereview.chromium.org/11262057/diff/31002/git_cl.py File git_cl.py (right): http://codereview.chromium.org/11262057/diff/31002/git_cl.py#newcode524 git_cl.py:524: code, remote_branch = RunGitWithCode(['config', 'depottools.remotebranch']) On 2012/11/01 ...
8 years, 1 month ago (2012-11-02 00:38:27 UTC) #21
Isaac (away)
Re: Robert https://chromiumcodereview.appspot.com/11262057/diff/31002/git_cl.py File git_cl.py (right): https://chromiumcodereview.appspot.com/11262057/diff/31002/git_cl.py#newcode509 git_cl.py:509: def GitSanityChecks(self, upstream_git_obj): On 2012/11/02 00:30:05, iannucci ...
8 years, 1 month ago (2012-11-02 00:50:03 UTC) #22
M-A Ruel
http://codereview.chromium.org/11262057/diff/31002/git_cl.py File git_cl.py (right): http://codereview.chromium.org/11262057/diff/31002/git_cl.py#newcode509 git_cl.py:509: def GitSanityChecks(self, upstream_git_obj): On 2012/11/02 00:30:05, iannucci wrote: > ...
8 years, 1 month ago (2012-11-02 00:51:54 UTC) #23
iannucci
lgtm... this should definitely keep people from getting all tangled up in a web of ...
8 years, 1 month ago (2012-11-02 01:01:48 UTC) #24
Isaac (away)
https://chromiumcodereview.appspot.com/11262057/diff/31002/git_cl.py File git_cl.py (right): https://chromiumcodereview.appspot.com/11262057/diff/31002/git_cl.py#newcode524 git_cl.py:524: code, remote_branch = RunGitWithCode(['config', 'depottools.remotebranch']) On 2012/11/02 00:51:54, Marc-Antoine ...
8 years, 1 month ago (2012-11-02 06:57:59 UTC) #25
M-A Ruel
https://chromiumcodereview.appspot.com/11262057/diff/28003/git_cl.py File git_cl.py (right): https://chromiumcodereview.appspot.com/11262057/diff/28003/git_cl.py#newcode524 git_cl.py:524: code, remote_branch = RunGitWithCode(['config', 'gitcl.remotebranch']) But shouldn't that configuration ...
8 years, 1 month ago (2012-11-02 13:37:29 UTC) #26
Isaac (away)
https://chromiumcodereview.appspot.com/11262057/diff/28003/git_cl.py File git_cl.py (right): https://chromiumcodereview.appspot.com/11262057/diff/28003/git_cl.py#newcode524 git_cl.py:524: code, remote_branch = RunGitWithCode(['config', 'gitcl.remotebranch']) On 2012/11/02 13:37:29, Marc-Antoine ...
8 years, 1 month ago (2012-11-02 16:12:02 UTC) #27
M-A Ruel
https://chromiumcodereview.appspot.com/11262057/diff/28003/git_cl.py File git_cl.py (right): https://chromiumcodereview.appspot.com/11262057/diff/28003/git_cl.py#newcode524 git_cl.py:524: code, remote_branch = RunGitWithCode(['config', 'gitcl.remotebranch']) On 2012/11/02 16:12:02, Isaac ...
8 years, 1 month ago (2012-11-02 17:24:56 UTC) #28
Isaac (away)
https://chromiumcodereview.appspot.com/11262057/diff/28003/git_cl.py File git_cl.py (right): https://chromiumcodereview.appspot.com/11262057/diff/28003/git_cl.py#newcode524 git_cl.py:524: code, remote_branch = RunGitWithCode(['config', 'gitcl.remotebranch']) In your case, if ...
8 years, 1 month ago (2012-11-02 17:44:22 UTC) #29
M-A Ruel
On 2012/11/02 17:44:22, Isaac wrote: > The main use case I'm trying to support with ...
8 years, 1 month ago (2012-11-02 17:57:55 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ilevy@chromium.org/11262057/28003
8 years, 1 month ago (2012-11-02 18:06:21 UTC) #31
commit-bot: I haz the power
Presubmit check for 11262057-28003 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 1 month ago (2012-11-02 18:08:47 UTC) #32
Isaac (away)
Fixed presubmit errors from git-svn branch handling, CQing.
8 years, 1 month ago (2012-11-05 01:42:19 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ilevy@chromium.org/11262057/35005
8 years, 1 month ago (2012-11-05 01:42:39 UTC) #34
commit-bot: I haz the power
8 years, 1 month ago (2012-11-05 01:45:21 UTC) #35
Change committed as 165887

Powered by Google App Engine
This is Rietveld 408576698