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
122 * an override for the recipe engine in the form of `-O recipe_engine=/path`
123 * the --package option.
128 p.add_argument('-O', '--project-override', action='append')
129 p.add_argument('--package', type=os.path.abspath)
138 dep, recipes_path = parse(repo_root, recipes_cfg_path)
160 _git_check_call(['rev-parse', '--verify', '%s^{commit}' % revision],
167 _git_check_call(['diff', '--quiet', revision], cwd=engine_path)
169 _git_check_call(['reset', '-q', '--hard', revision], cwd=engine_path)
175 if '--verbose' in sys.argv:
189 ['rev-parse', '--show-toplevel'],
193 args = ['--package', recipes_cfg_path] + args
198 VPYTHON, '-u',