diff --git a/recipes/README.recipes.md b/recipes/README.recipes.md index dcb510c433..c64daced17 100644 --- a/recipes/README.recipes.md +++ b/recipes/README.recipes.md @@ -58,7 +58,7 @@ Recipe module to ensure a checkout is consistent on a bot. Wrapper for easy calling of bot_update. -— **def [deapply\_patch](/recipes/recipe_modules/bot_update/api.py#515)(self, bot_update_step):** +— **def [deapply\_patch](/recipes/recipe_modules/bot_update/api.py#518)(self, bot_update_step):** Deapplies a patch, taking care of DEPS and solution revisions properly. @@ -89,7 +89,7 @@ Args: step_test_data: a null function that returns test bot_update.py output. Use test_api.output_json to generate test data. -— **def [get\_project\_revision\_properties](/recipes/recipe_modules/bot_update/api.py#492)(self, project_name, gclient_config=None):** +— **def [get\_project\_revision\_properties](/recipes/recipe_modules/bot_update/api.py#495)(self, project_name, gclient_config=None):** Returns all property names used for storing the checked-out revision of a given project. @@ -107,7 +107,7 @@ Returns (list of str): All properties that'll hold the checked-out revision   **@property**
— **def [last\_returned\_properties](/recipes/recipe_modules/bot_update/api.py#44)(self):** -— **def [resolve\_fixed\_revision](/recipes/recipe_modules/bot_update/api.py#442)(self, bot_update_json, name):** +— **def [resolve\_fixed\_revision](/recipes/recipe_modules/bot_update/api.py#445)(self, bot_update_json, name):** Set a fixed revision for a single dependency using project revision properties. diff --git a/recipes/recipe_modules/bot_update/api.py b/recipes/recipe_modules/bot_update/api.py index e30d10d6a3..86b2ce3e11 100644 --- a/recipes/recipe_modules/bot_update/api.py +++ b/recipes/recipe_modules/bot_update/api.py @@ -197,6 +197,9 @@ class BotUpdateApi(recipe_api.RecipeApi): # This is necessary because existing builders rely on this behavior, # e.g. they want to force refs/heads/master at the config level. in_commit_repo_path = self._get_commit_repo_path(in_commit, cfg) + # The repo_path that comes back on Windows will have backslashes, which + # won't match the paths that the gclient configs and bot_update script use + in_commit_repo_path = in_commit_repo_path.replace(self.m.path.sep, '/') revisions[in_commit_repo_path] = ( revisions.get(in_commit_repo_path) or in_commit_rev) parsed_solution_urls = set(