Chromium Code Reviews| Index: recipe_modules/git_cl/config.py |
| diff --git a/recipe_modules/git_cl/config.py b/recipe_modules/git_cl/config.py |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..70a96e7e20f91b643d6132bea28355a1fd5885c8 |
| --- /dev/null |
| +++ b/recipe_modules/git_cl/config.py |
| @@ -0,0 +1,22 @@ |
| +# Copyright 2013 The Chromium Authors. All rights reserved. |
| +# Use of this source code is governed by a BSD-style license that can be |
| +# found in the LICENSE file. |
| + |
| +import types |
| + |
| +from recipe_engine.config import config_item_context, ConfigGroup, BadConf |
| +from recipe_engine.config import Single |
| +from recipe_engine.config_types import Path |
| + |
| +def BaseConfig(**_kwargs): |
|
iannucci
2016/04/29 18:55:20
not convinced this is necessary (or desirable)
If
tandrii(chromium)
2016/04/29 19:04:43
+1. It's not desirable. path['checkout'] would be
martiniss
2016/04/29 19:26:48
Ok, i'll just keep this as is for now.
tandrii(chromium)
2016/05/02 14:14:48
OOps, I re-invented the wheel. Now I've re-read wh
|
| + return ConfigGroup( |
| + repo_location=Single(Path) |
| + ) |
| + |
| +config_ctx = config_item_context(BaseConfig) |
| + |
| +@config_ctx() |
| +def basic(c): |
| + pass |
| + |
| + |