mirror of
https://chromium.googlesource.com/chromium/tools/depot_tools.git
synced 2026-01-11 10:41:31 +00:00
Run git_cl commands as a python step.
Otherwise this fails on Windows because git_cl.py "is not a valid Win32
application".
R=gbeaty@google.com, iannucci@google.com
Bug: 726111
Change-Id: I4b9fea6b5271241e14407aeab175ce73d1ee8349
Change-Id: I4b9fea6b5271241e14407aeab175ce73d1ee8349
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/1835598
Commit-Queue: Michael Moss <mmoss@chromium.org>
Reviewed-by: Garrett Beaty <gbeaty@chromium.org>
Reviewed-by: Robbie Iannucci <iannucci@chromium.org>
(cherry picked from commit 6b4c2a88f3)
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/1846775
Auto-Submit: Michael Moss <mmoss@chromium.org>
Reviewed-by: Michael Moss <mmoss@chromium.org>
This commit is contained in:
committed by
Michael Moss
parent
208e343daf
commit
9c96f7437e
@@ -522,7 +522,7 @@ dir_path (Path): directory to clone into
|
|||||||
remote_name (str): the remote name to rebase from if not origin
|
remote_name (str): the remote name to rebase from if not origin
|
||||||
### *recipe_modules* / [git\_cl](/recipes/recipe_modules/git_cl)
|
### *recipe_modules* / [git\_cl](/recipes/recipe_modules/git_cl)
|
||||||
|
|
||||||
[DEPS](/recipes/recipe_modules/git_cl/__init__.py#1): [recipe\_engine/context][recipe_engine/recipe_modules/context], [recipe\_engine/raw\_io][recipe_engine/recipe_modules/raw_io], [recipe\_engine/step][recipe_engine/recipe_modules/step]
|
[DEPS](/recipes/recipe_modules/git_cl/__init__.py#1): [recipe\_engine/context][recipe_engine/recipe_modules/context], [recipe\_engine/python][recipe_engine/recipe_modules/python], [recipe\_engine/raw\_io][recipe_engine/recipe_modules/raw_io]
|
||||||
|
|
||||||
#### **class [GitClApi](/recipes/recipe_modules/git_cl/api.py#9)([RecipeApi][recipe_engine/wkt/RecipeApi]):**
|
#### **class [GitClApi](/recipes/recipe_modules/git_cl/api.py#9)([RecipeApi][recipe_engine/wkt/RecipeApi]):**
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
DEPS = [
|
DEPS = [
|
||||||
'recipe_engine/context',
|
'recipe_engine/context',
|
||||||
|
'recipe_engine/python',
|
||||||
'recipe_engine/raw_io',
|
'recipe_engine/raw_io',
|
||||||
'recipe_engine/step',
|
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -16,8 +16,8 @@ class GitClApi(recipe_api.RecipeApi):
|
|||||||
|
|
||||||
my_loc = self.c.repo_location if self.c else None
|
my_loc = self.c.repo_location if self.c else None
|
||||||
with self.m.context(cwd=self.m.context.cwd or my_loc):
|
with self.m.context(cwd=self.m.context.cwd or my_loc):
|
||||||
return self.m.step(
|
return self.m.python(
|
||||||
name, [self.repo_resource('git_cl.py'), subcmd] + args,
|
name, self.repo_resource('git_cl.py'), [subcmd] + args,
|
||||||
**kwargs)
|
**kwargs)
|
||||||
|
|
||||||
def get_description(self, patch_url=None, codereview=None, **kwargs):
|
def get_description(self, patch_url=None, codereview=None, **kwargs):
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
[
|
[
|
||||||
{
|
{
|
||||||
"cmd": [
|
"cmd": [
|
||||||
|
"python",
|
||||||
|
"-u",
|
||||||
"RECIPE_REPO[depot_tools]/git_cl.py",
|
"RECIPE_REPO[depot_tools]/git_cl.py",
|
||||||
"upload",
|
"upload",
|
||||||
"--message-file",
|
"--message-file",
|
||||||
@@ -10,6 +12,8 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cmd": [
|
"cmd": [
|
||||||
|
"python",
|
||||||
|
"-u",
|
||||||
"RECIPE_REPO[depot_tools]/git_cl.py",
|
"RECIPE_REPO[depot_tools]/git_cl.py",
|
||||||
"issue"
|
"issue"
|
||||||
],
|
],
|
||||||
@@ -17,6 +21,8 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cmd": [
|
"cmd": [
|
||||||
|
"python",
|
||||||
|
"-u",
|
||||||
"RECIPE_REPO[depot_tools]/git_cl.py",
|
"RECIPE_REPO[depot_tools]/git_cl.py",
|
||||||
"description",
|
"description",
|
||||||
"-d",
|
"-d",
|
||||||
@@ -27,6 +33,8 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cmd": [
|
"cmd": [
|
||||||
|
"python",
|
||||||
|
"-u",
|
||||||
"RECIPE_REPO[depot_tools]/git_cl.py",
|
"RECIPE_REPO[depot_tools]/git_cl.py",
|
||||||
"description",
|
"description",
|
||||||
"-n",
|
"-n",
|
||||||
@@ -46,6 +54,8 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cmd": [
|
"cmd": [
|
||||||
|
"python",
|
||||||
|
"-u",
|
||||||
"RECIPE_REPO[depot_tools]/git_cl.py",
|
"RECIPE_REPO[depot_tools]/git_cl.py",
|
||||||
"description",
|
"description",
|
||||||
"-d"
|
"-d"
|
||||||
@@ -62,6 +72,8 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cmd": [
|
"cmd": [
|
||||||
|
"python",
|
||||||
|
"-u",
|
||||||
"RECIPE_REPO[depot_tools]/git_cl.py",
|
"RECIPE_REPO[depot_tools]/git_cl.py",
|
||||||
"description",
|
"description",
|
||||||
"-n",
|
"-n",
|
||||||
@@ -73,6 +85,8 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cmd": [
|
"cmd": [
|
||||||
|
"python",
|
||||||
|
"-u",
|
||||||
"RECIPE_REPO[depot_tools]/git_cl.py",
|
"RECIPE_REPO[depot_tools]/git_cl.py",
|
||||||
"description",
|
"description",
|
||||||
"-d"
|
"-d"
|
||||||
|
|||||||
Reference in New Issue
Block a user