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

Issue 5972005: Add support for post-dcommit hooks (Closed)

Created:
10 years ago by sadrul
Modified:
9 years, 6 months ago
CC:
chromium-reviews, M-A Ruel
Visibility:
Public.

Description

Add support for post-dcommit/post-push hooks. Patch contributed by sadrul@chromium.org Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=71097

Patch Set 1 #

Total comments: 4

Patch Set 2 : Address maruel's comments #

Patch Set 3 : Use a post-dcommit hook instead. #

Total comments: 6

Patch Set 4 : Add a test #

Patch Set 5 : move code outside of master #

Total comments: 2

Patch Set 6 : retcode #

Patch Set 7 : '' #

Patch Set 8 : Test file. #

Patch Set 9 : '' #

Patch Set 10 : ... #

Patch Set 11 : '' #

Total comments: 2

Patch Set 12 : '' #

Total comments: 2

Patch Set 13 : '' #

Patch Set 14 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+45 lines, -1 line) Patch
M git_cl/git_cl.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +8 lines, -1 line 0 comments Download
A git_cl/test/post-dcommit-hook-test.sh View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +37 lines, -0 lines 0 comments Download

Messages

Total messages: 32 (0 generated)
sadrul
10 years ago (2010-12-22 20:23:12 UTC) #1
M-A Ruel
I wonder what others think about it. I wouldn't use it personally because it doesn't ...
10 years ago (2010-12-22 20:28:21 UTC) #2
sadrul
I like to keep the work-history around, so I do not delete branches after committing. ...
10 years ago (2010-12-22 20:39:49 UTC) #3
Evan Martin
FYI, conflict warning: I guess you might need to wait for Chase to move this ...
10 years ago (2010-12-22 20:47:36 UTC) #4
Mandeep Singh Baines
Can't this be done with a post-commit hook. I'd prefer not to bloat git-cl. sadrul@chromium.org ...
10 years ago (2010-12-22 20:54:30 UTC) #5
sadrul
[snip] > Always delete the branch on dcommit. print out "if you still wanted this ...
10 years ago (2010-12-22 21:27:57 UTC) #6
Evan Martin
On 2010/12/22 21:27:57, sadrul wrote: > A post-commit hook would be most awesome! I believe ...
10 years ago (2010-12-22 21:36:21 UTC) #7
sadrul
On 2010/12/22 21:36:21, Evan Martin wrote: > On 2010/12/22 21:27:57, sadrul wrote: > > A ...
10 years ago (2010-12-22 21:54:20 UTC) #8
Evan Martin
http://codereview.chromium.org/5972005/diff/12001/git_cl.py File git_cl.py (right): http://codereview.chromium.org/5972005/diff/12001/git_cl.py#newcode996 git_cl.py:996: if retcode == 0 and os.path.isfile(POSTDCOMMIT_HOOK): It's common in ...
10 years ago (2010-12-22 22:14:56 UTC) #9
Evan Martin
(PS please update the review description)
10 years ago (2010-12-22 22:15:11 UTC) #10
Mandeep Singh Baines
Code LGTM. But please update the issue (click 'Edit Issue') to reflect what the code ...
10 years ago (2010-12-22 22:15:56 UTC) #11
sadrul
Updated the issue description. http://codereview.chromium.org/5972005/diff/12001/git_cl.py File git_cl.py (right): http://codereview.chromium.org/5972005/diff/12001/git_cl.py#newcode996 git_cl.py:996: if retcode == 0 and ...
10 years ago (2010-12-22 22:46:29 UTC) #12
Evan Martin
http://codereview.chromium.org/5972005/diff/12001/git_cl.py File git_cl.py (right): http://codereview.chromium.org/5972005/diff/12001/git_cl.py#newcode999 git_cl.py:999: if cl.GetIssue(): On 2010/12/22 22:46:29, sadrul wrote: > On ...
10 years ago (2010-12-22 23:05:44 UTC) #13
sadrul
Added a test. Please take a look. http://codereview.chromium.org/5972005/diff/12001/git_cl.py File git_cl.py (right): http://codereview.chromium.org/5972005/diff/12001/git_cl.py#newcode999 git_cl.py:999: if cl.GetIssue(): ...
10 years ago (2010-12-22 23:17:24 UTC) #14
Evan Martin
On 2010/12/22 23:17:24, sadrul wrote: > > So maybe you want to move your new ...
10 years ago (2010-12-22 23:22:53 UTC) #15
sadrul
On 2010/12/22 23:22:53, Evan Martin wrote: > On 2010/12/22 23:17:24, sadrul wrote: > > > ...
10 years ago (2010-12-23 00:27:37 UTC) #16
Evan Martin
http://codereview.chromium.org/5972005/diff/23001/git_cl.py File git_cl.py (right): http://codereview.chromium.org/5972005/diff/23001/git_cl.py#newcode997 git_cl.py:997: if retcode == 0 and os.path.isfile(POSTDCOMMIT_HOOK): My point was ...
10 years ago (2010-12-23 00:32:07 UTC) #17
sadrul
http://codereview.chromium.org/5972005/diff/23001/git_cl.py File git_cl.py (right): http://codereview.chromium.org/5972005/diff/23001/git_cl.py#newcode997 git_cl.py:997: if retcode == 0 and os.path.isfile(POSTDCOMMIT_HOOK): On 2010/12/23 00:32:07, ...
10 years ago (2010-12-23 00:41:31 UTC) #18
Evan Martin
On 2010/12/23 00:41:31, sadrul wrote: > Ah. I wasn't sure if that would always be ...
10 years ago (2010-12-23 00:55:39 UTC) #19
sadrul
On 2010/12/23 00:55:39, Evan Martin wrote: > On 2010/12/23 00:41:31, sadrul wrote: > > Ah. ...
10 years ago (2010-12-23 01:23:18 UTC) #20
M-A Ruel
For the record, you will want to sync depot_tools and recreate the patch against depot_tools/git_cl/git_cl.py.
10 years ago (2010-12-23 01:31:22 UTC) #21
sadrul
On 2010/12/23 01:31:22, Marc-Antoine Ruel wrote: > For the record, you will want to sync ...
10 years ago (2010-12-23 05:17:59 UTC) #22
Evan Martin
LGTM
10 years ago (2010-12-23 19:45:14 UTC) #23
sadrul
I moved the dcommit hook execution a bit lower, after the issue is closed. Otherwise ...
9 years, 11 months ago (2011-01-10 19:10:37 UTC) #24
M-A Ruel
Please fix the change description. http://codereview.chromium.org/5972005/diff/42001/git_cl/git_cl.py File git_cl/git_cl.py (right): http://codereview.chromium.org/5972005/diff/42001/git_cl/git_cl.py#newcode32 git_cl/git_cl.py:32: POSTUPSTREAM_HOOK_PATTERN = '.git/hooks/post-cl-%s' I ...
9 years, 11 months ago (2011-01-10 19:22:08 UTC) #25
sadrul
On 2011/01/10 19:22:08, Marc-Antoine Ruel wrote: > Please fix the change description. Oops! Didn't realize ...
9 years, 11 months ago (2011-01-10 19:27:40 UTC) #26
sadrul
http://codereview.chromium.org/5972005/diff/42001/git_cl/git_cl.py File git_cl/git_cl.py (right): http://codereview.chromium.org/5972005/diff/42001/git_cl/git_cl.py#newcode32 git_cl/git_cl.py:32: POSTUPSTREAM_HOOK_PATTERN = '.git/hooks/post-cl-%s' On 2011/01/10 19:22:08, Marc-Antoine Ruel wrote: ...
9 years, 11 months ago (2011-01-10 19:27:50 UTC) #27
Evan Martin
LGTM, maybe wait for M-A too
9 years, 11 months ago (2011-01-10 19:35:23 UTC) #28
Mandeep Singh Baines
http://codereview.chromium.org/5972005/diff/49001/git_cl/git_cl.py File git_cl/git_cl.py (right): http://codereview.chromium.org/5972005/diff/49001/git_cl/git_cl.py#newcode1016 git_cl/git_cl.py:1016: if os.path.isfile(hook): Nit. This check is redundant. RunHook already ...
9 years, 11 months ago (2011-01-10 21:21:41 UTC) #29
sadrul
http://codereview.chromium.org/5972005/diff/49001/git_cl/git_cl.py File git_cl/git_cl.py (right): http://codereview.chromium.org/5972005/diff/49001/git_cl/git_cl.py#newcode1016 git_cl/git_cl.py:1016: if os.path.isfile(hook): On 2011/01/10 21:21:41, Mandeep Singh Baines wrote: ...
9 years, 11 months ago (2011-01-10 21:45:08 UTC) #30
Mandeep Singh Baines
sadrul@chromium.org (sadrul@chromium.org) wrote: > > http://codereview.chromium.org/5972005/diff/49001/git_cl/git_cl.py > File git_cl/git_cl.py (right): > > http://codereview.chromium.org/5972005/diff/49001/git_cl/git_cl.py#newcode1016 > git_cl/git_cl.py:1016: ...
9 years, 11 months ago (2011-01-10 21:53:05 UTC) #31
commit-bot: I haz the power
9 years, 11 months ago (2011-01-11 22:11:07 UTC) #32
Can't process patch: Can't apply svn property svn:executable at line 86

Powered by Google App Engine
This is Rietveld 408576698