Chromium Code Reviews

Issue 1925873002: Add git_cl recipe module. (Closed)

Created:
4 years, 7 months ago by martiniss
Modified:
4 years, 7 months ago
Reviewers:
iannucci, tandrii(chromium)
CC:
chromium-reviews, dpranke+depot_tools_chromium.org, iannucci+depot_tools_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/tools/depot_tools.git@set_desc
Target Ref:
refs/heads/master
Project:
depot_tools
Visibility:
Public.

Description

Patch Set 1 #

Total comments: 2

Patch Set 2 : Add example.py, make cwd configurable by module. #

Total comments: 8

Patch Set 3 : remove old stuff. #

Unified diffs Side-by-side diffs Stats (+158 lines, -0 lines)
A recipe_modules/git_cl/__init__.py View 1 chunk +4 lines, -0 lines 0 comments
A recipe_modules/git_cl/api.py View 1 chunk +25 lines, -0 lines 0 comments
A recipe_modules/git_cl/config.py View 1 chunk +22 lines, -0 lines 0 comments
A recipe_modules/git_cl/example.py View 1 chunk +41 lines, -0 lines 0 comments
A recipe_modules/git_cl/example.expected/basic.json View 1 chunk +66 lines, -0 lines 0 comments

Messages

Total messages: 17 (5 generated)
martiniss
PTAL
4 years, 7 months ago (2016-04-27 23:26:35 UTC) #2
tandrii(chromium)
where is example.py? https://codereview.chromium.org/1925873002/diff/1/recipe_modules/git_cl/api.py File recipe_modules/git_cl/api.py (right): https://codereview.chromium.org/1925873002/diff/1/recipe_modules/git_cl/api.py#newcode8 recipe_modules/git_cl/api.py:8: def __call__(self, name, args, **kwargs): how ...
4 years, 7 months ago (2016-04-28 05:19:35 UTC) #3
tandrii(chromium)
where is example.py?
4 years, 7 months ago (2016-04-28 05:19:36 UTC) #4
iannucci
https://codereview.chromium.org/1925873002/diff/20001/recipe_modules/git_cl/api.py File recipe_modules/git_cl/api.py (right): https://codereview.chromium.org/1925873002/diff/20001/recipe_modules/git_cl/api.py#newcode12 recipe_modules/git_cl/api.py:12: kwargs['cwd'] = (self.c and self.c.repo_location) or None why not ...
4 years, 7 months ago (2016-04-29 18:55:20 UTC) #5
tandrii(chromium)
https://codereview.chromium.org/1925873002/diff/20001/recipe_modules/git_cl/config.py File recipe_modules/git_cl/config.py (right): https://codereview.chromium.org/1925873002/diff/20001/recipe_modules/git_cl/config.py#newcode11 recipe_modules/git_cl/config.py:11: def BaseConfig(**_kwargs): On 2016/04/29 18:55:20, iannucci wrote: > not ...
4 years, 7 months ago (2016-04-29 19:04:43 UTC) #6
martiniss
https://codereview.chromium.org/1925873002/diff/20001/recipe_modules/git_cl/api.py File recipe_modules/git_cl/api.py (right): https://codereview.chromium.org/1925873002/diff/20001/recipe_modules/git_cl/api.py#newcode12 recipe_modules/git_cl/api.py:12: kwargs['cwd'] = (self.c and self.c.repo_location) or None On 2016/04/29 ...
4 years, 7 months ago (2016-04-29 19:26:48 UTC) #7
iannucci
rslgtm, looking forward to the context change tho
4 years, 7 months ago (2016-04-29 20:12:44 UTC) #8
iannucci
On 2016/04/29 20:12:44, iannucci wrote: > rslgtm, looking forward to the context change tho *sigh*... ...
4 years, 7 months ago (2016-04-29 20:12:54 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1925873002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1925873002/40001
4 years, 7 months ago (2016-04-29 20:29:23 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1925873002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1925873002/40001
4 years, 7 months ago (2016-04-29 20:35:44 UTC) #14
commit-bot: I haz the power
Committed patchset #3 (id:40001) as http://src.chromium.org/viewvc/chrome?view=rev&revision=300372
4 years, 7 months ago (2016-04-29 20:38:43 UTC) #16
tandrii(chromium)
4 years, 7 months ago (2016-05-02 14:14:48 UTC) #17
Message was sent while issue was closed.
https://codereview.chromium.org/1925873002/diff/20001/recipe_modules/git_cl/c...
File recipe_modules/git_cl/config.py (right):

https://codereview.chromium.org/1925873002/diff/20001/recipe_modules/git_cl/c...
recipe_modules/git_cl/config.py:11: def BaseConfig(**_kwargs):
On 2016/04/29 19:26:48, martiniss wrote:
> On 2016/04/29 at 19:04:43, tandrii(chromium) wrote:
> > On 2016/04/29 18:55:20, iannucci wrote:
> > > not convinced this is necessary (or desirable)
> > > 
> > > If you don't like api.path['checkout'] for some reason, I would probably
> even
> > > prefer
> > > 
> > >   with api.step.context(cwd="something"):
> > >     # steps
> > > 
> > >   (Would require adding cwd to context, but that's a very easy change).
> > > 
> > > Or even
> > > 
> > >   with api.path.cwd(some_path):
> > >     # api.path['cwd'] == some_path
> > >     # api.step would use `api.path['cwd']` as its cwd value.
> > > 
> > 
> > +1. It's not desirable. path['checkout'] would be sane default, but I really
> love context idea - I actually already have it, so martiniss@ how you about
you
> land without it, and i'll add my patch on top.

OOps, I re-invented the wheel. Now I've re-read what Robbie wrote. The

with api.path.cwd(repo_path):
  ...

makes total sense to me and I have nothing else to offer. Stephen, why does this
not work for you?

Powered by Google App Engine