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

Issue 1485663002: Add ability to retrieve cl commit bit on cmd line. (Closed)

Created:
5 years ago by Michael Achenbach
Modified:
5 years ago
CC:
chromium-reviews, dpranke+depot_tools_chromium.org, iannucci+depot_tools_chromium.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Add ability to retrieve cl commit bit on cmd line. BUG=chromium:563434 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=297735

Patch Set 1 #

Patch Set 2 : #

Total comments: 2

Patch Set 3 : Review #

Patch Set 4 : #

Total comments: 2

Patch Set 5 : Review #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+24 lines, -4 lines) Patch
M commit_queue.py View 1 2 3 4 3 chunks +24 lines, -4 lines 2 comments Download

Messages

Total messages: 17 (5 generated)
Michael Achenbach
PTAL
5 years ago (2015-11-30 13:20:48 UTC) #3
Michael Hablich
lgtm with nit. Sorry that I have not seen that earlier. https://codereview.chromium.org/1485663002/diff/20001/commit_queue.py File commit_queue.py (right): ...
5 years ago (2015-11-30 13:24:19 UTC) #4
tandrii(chromium)
LGTM
5 years ago (2015-11-30 13:29:06 UTC) #5
tandrii(chromium)
<<<<<<-------- and maybe you should switch to git checkout
5 years ago (2015-11-30 13:29:38 UTC) #6
Michael Achenbach
How about now? https://codereview.chromium.org/1485663002/diff/20001/commit_queue.py File commit_queue.py (right): https://codereview.chromium.org/1485663002/diff/20001/commit_queue.py#newcode85 commit_queue.py:85: if e.code == 404: On 2015/11/30 ...
5 years ago (2015-11-30 13:35:37 UTC) #7
Michael Achenbach
On 2015/11/30 13:29:38, tandrii(chromium) wrote: > <<<<<<-------- and maybe you should switch to git checkout ...
5 years ago (2015-11-30 13:35:54 UTC) #8
tandrii(chromium)
LGTM and don't bother about SVN: this CL will land through CQ either way. it ...
5 years ago (2015-11-30 13:54:09 UTC) #9
Michael Achenbach
https://codereview.chromium.org/1485663002/diff/60001/commit_queue.py File commit_queue.py (right): https://codereview.chromium.org/1485663002/diff/60001/commit_queue.py#newcode83 commit_queue.py:83: fun(obj.get_issue_properties(issue, False)) On 2015/11/30 13:54:09, tandrii(chromium) wrote: > this ...
5 years ago (2015-11-30 13:57:10 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1485663002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1485663002/80001
5 years ago (2015-11-30 13:59:45 UTC) #13
commit-bot: I haz the power
Committed patchset #5 (id:80001) as http://src.chromium.org/viewvc/chrome?view=rev&revision=297735
5 years ago (2015-11-30 14:01:47 UTC) #15
tandrii(chromium)
https://codereview.chromium.org/1485663002/diff/80001/commit_queue.py File commit_queue.py (right): https://codereview.chromium.org/1485663002/diff/80001/commit_queue.py#newcode80 commit_queue.py:80: def _apply_on_issue(fun, obj, issue): well, if you are into ...
5 years ago (2015-11-30 14:03:11 UTC) #16
Michael Achenbach
5 years ago (2015-11-30 14:11:07 UTC) #17
Message was sent while issue was closed.
https://codereview.chromium.org/1485663002/diff/80001/commit_queue.py
File commit_queue.py (right):

https://codereview.chromium.org/1485663002/diff/80001/commit_queue.py#newcode80
commit_queue.py:80: def _apply_on_issue(fun, obj, issue):
On 2015/11/30 14:03:11, tandrii(chromium) wrote:
> well, if you are into making re-usable thing, why not make it like this:
>   def _get_issue_properties(obj, issue):
>     try: ...
>     except:
>       ...
>       # instead of return 1
>       sys.exit(1)
> 
> and use as nicely as
> 
> def get_commit(..):
>   print int(_get_issue_properties(obj, issue)['commit'])

I'm not entirely sure about the semantics of the callers. The expect a return
code and calling sys.exit(1) would circumvent this. E.g. the caller might have
some more logic and print additional help message or something...

Powered by Google App Engine
This is Rietveld 408576698