Lines Matching +full:- +full:- +full:repo
9 # /usr/bin/env: 'python3 -u': No such file or directory
11 # This little shell hack is a triple-quoted noop in python, but in sh it
12 # evaluates to re-exec'ing this script in unbuffered mode.
13 # pylint: disable=pointless-string-statement
14 ''''exec python3 -u -- "$0" ${1+"$@"} # '''
22 This is a copy of https://chromium.googlesource.com/infra/luci/recipes-py/+/main/recipes.py.
23 To fix bugs, fix in the googlesource repo then run the autoroller.
26 # pylint: disable=wrong-import-position
36 from io import open # pylint: disable=redefined-builtin
43 # The dependency entry for the recipe_engine in the client repo's recipes.cfg
45 # url (str) - the url to the engine repo we want to use.
46 # revision (str) - the git revision for the engine to get.
47 # branch (str) - the branch to fetch for the engine as an absolute ref (e.g.
63 repo_root (str) - native path to the root of the repo we're trying to run
65 recipes_cfg_path (str) - native path to the recipes.cfg file to process.
69 current repo IS the recipe_engine.
70 recipes_path (str) - native path to where the recipes live inside of the
71 current repo (i.e. the folder containing `recipes/` and/or
73 py3_only (bool) - True if this repo has been marked as ONLY supporting
85 # If we're running ./recipes.py from the recipe_engine repo itself, then
156 * an override for the recipe engine in the form of `-O recipe_engine=/path`
157 * the --package option.
162 p.add_argument('-O', '--project-override', action='append')
163 p.add_argument('--package', type=os.path.abspath)
172 """Checks out the recipe_engine repo pinned in recipes.cfg.
174 Returns the path to the recipe engine repo and the py3_only boolean.
178 # we're running from the engine repo already!
198 _git_check_call(['rev-parse', '--verify',
204 _git_check_call(['fetch', '--quiet', url, branch],
209 _git_check_call(['diff', '--quiet', revision], cwd=engine_path)
218 _git_check_call(['reset', '-q', '--hard', revision], cwd=engine_path)
222 _git_check_call(['clean', '-qxf'], cwd=engine_path)
232 if '--verbose' in sys.argv:
245 _git_output(['rev-parse', '--show-toplevel'],
249 args = ['--package', recipes_cfg_path] + args
258 vpython, '-u', os.path.join(engine_path, 'recipe_engine', 'main.py'),