Lines Matching +full:rev +full:- +full:parse
13 This is a copy of https://chromium.googlesource.com/infra/luci/recipes-py/+/master/recipes.py.
33 # url (str) - the url to the engine repo we want to use.
34 # revision (str) - the git revision for the engine to get.
35 # branch (str) - the branch to fetch for the engine as an absolute ref (e.g.
47 def parse(repo_root, recipes_cfg_path): function
48 """Parse is a lightweight a recipes.cfg file parser.
51 repo_root (str) - native path to the root of the repo we're trying to run
53 recipes_cfg_path (str) - native path to the recipes.cfg file to process.
58 recipes_path (str) - native path to where the recipes live inside of the
125 * an override for the recipe engine in the form of `-O recipe_engine=/path`
126 * the --package option.
131 p.add_argument('-O', '--project-override', action='append')
132 p.add_argument('--package', type=os.path.abspath)
141 dep, recipes_path = parse(repo_root, recipes_cfg_path)
163 _git_check_call(['rev-parse', '--verify', '%s^{commit}' % revision],
170 _git_check_call(['diff', '--quiet', revision], cwd=engine_path)
172 _git_check_call(['reset', '-q', '--hard', revision], cwd=engine_path)
178 if '--verbose' in sys.argv:
192 ['rev-parse', '--show-toplevel'],
196 args = ['--package', recipes_cfg_path] + args
201 VPYTHON, '-u',