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

Issue 6665018: Remove support for generic "hook files" in git-cl, require depot_tools (Closed)

Created:
9 years, 9 months ago by Dirk Pranke
Modified:
9 years, 7 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

Remove support for generic "hook files" in git-cl, and just call into the git_cl_hooks library in depot_tools. Also remove support for post-commit hooks. This binds git-cl tighter to depot_tools, but also makes things a lot simpler and cleaner. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=77889

Patch Set 1 #

Patch Set 2 : further cleanup, testing; get rid of git_cl_hooks.py #

Patch Set 3 : rebase properly #

Total comments: 5

Patch Set 4 : restore hooks files for backwards-compatibility with old clients for now #

Patch Set 5 : put dcommit hook back in #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+75 lines, -37 lines) Patch
M git_cl/git_cl.py View 1 2 3 4 7 chunks +58 lines, -23 lines 5 comments Download
M git_cl/test/hooks.sh View 2 chunks +17 lines, -14 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Dirk Pranke
Looks like everything gets easier w/o the standalone hooks files. WDYT?
9 years, 9 months ago (2011-03-11 02:51:40 UTC) #1
M-A Ruel
http://codereview.chromium.org/6665018/diff/8/git-cl-upload-hook File git-cl-upload-hook (left): http://codereview.chromium.org/6665018/diff/8/git-cl-upload-hook#oldcode1 git-cl-upload-hook:1: #!/usr/bin/python You need to delete this file later, as ...
9 years, 9 months ago (2011-03-11 14:42:52 UTC) #2
Dirk Pranke
On 2011/03/11 14:42:52, Marc-Antoine Ruel wrote: > http://codereview.chromium.org/6665018/diff/8/git-cl-upload-hook > File git-cl-upload-hook (left): > > http://codereview.chromium.org/6665018/diff/8/git-cl-upload-hook#oldcode1 ...
9 years, 9 months ago (2011-03-11 20:58:54 UTC) #3
M-A Ruel
On 2011/03/11 20:58:54, dpranke wrote: > On 2011/03/11 14:42:52, Marc-Antoine Ruel wrote: > > git-cl-upload-hook:1: ...
9 years, 9 months ago (2011-03-11 21:15:17 UTC) #4
Dirk Pranke
On Fri, Mar 11, 2011 at 1:15 PM, <maruel@chromium.org> wrote: > On 2011/03/11 20:58:54, dpranke ...
9 years, 9 months ago (2011-03-11 21:23:49 UTC) #5
Mandeep Singh Baines
LGTM
9 years, 9 months ago (2011-03-11 23:04:01 UTC) #6
chase
9 years, 9 months ago (2011-03-14 21:05:47 UTC) #7
lgtm with some nits/notes

Thanks for making the change, today I was looking at making this simpler after
the outage last week and you did it already in a way that's as straightforward
as it gets. :)  Strange to go from supporting separate hook files in git-cl to
moving away from them completely.  If you're interested,
http://code.google.com/p/chromium/issues/detail?id=5339 for the original
history.

http://codereview.chromium.org/6665018/diff/7003/git_cl/git_cl.py
File git_cl/git_cl.py (right):

http://codereview.chromium.org/6665018/diff/7003/git_cl/git_cl.py#newcode682
git_cl/git_cl.py:682: root = "."
my original lines in git_cl_hooks.py should have used ', feel free to fix if you
want

http://codereview.chromium.org/6665018/diff/7003/git_cl/git_cl.py#newcode685
git_cl/git_cl.py:685: raise Exception("Could not get root directory.")
my original lines in git_cl_hooks.py should have used ', feel free to fix if you
want

http://codereview.chromium.org/6665018/diff/7003/git_cl/git_cl.py#newcode701
git_cl/git_cl.py:701: '%s...' % (upstream_branch)]).strip()
indent one char

http://codereview.chromium.org/6665018/diff/7003/git_cl/git_cl.py#newcode711
git_cl/git_cl.py:711: 'rietveld.extracc', ','.join(watchers)])
indent one char

http://codereview.chromium.org/6665018/diff/7003/git_cl/git_cl.py#newcode938
git_cl/git_cl.py:938: RunHook(committing=False, upstream_branch=base_branch)
<strike>committing=True to match PREDCOMMIT_HOOK</strike>
looks like you fixed this in r77898, thanks

Powered by Google App Engine
This is Rietveld 408576698