abandon/start/info: Make them respect smart sync override Call TryOverrideManifestWithSmartSync in start, abandon, and info commands. This ensures they pick up the pinned revisions from the smart sync override manifest if it exists, rather than falling back to ToT from the default manifest. Bug: 279204331 Change-Id: I637f054a77773805daf0bf9cf5a712d82a5959b4 Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/582503 Reviewed-by: Mike Frysinger <vapier@google.com> Tested-by: Gavin Mak <gavinmak@google.com> Commit-Queue: Gavin Mak <gavinmak@google.com>
diff --git a/subcmds/abandon.py b/subcmds/abandon.py index f1688e7..38f6ca4 100644 --- a/subcmds/abandon.py +++ b/subcmds/abandon.py
@@ -94,6 +94,7 @@ def Execute(self, opt, args): nb = args[0].split() + self.TryOverrideManifestWithSmartSync() err = collections.defaultdict(list) success = collections.defaultdict(list) aggregate_errors = []
diff --git a/subcmds/info.py b/subcmds/info.py index e404dd4..19bb36d 100644 --- a/subcmds/info.py +++ b/subcmds/info.py
@@ -147,6 +147,8 @@ if not opt.this_manifest_only: self.manifest = self.manifest.outer_client + self.TryOverrideManifestWithSmartSync() + output_format = OutputFormat[opt.format.upper()] if output_format == OutputFormat.JSON: self._ExecuteJson(opt, args)
diff --git a/subcmds/start.py b/subcmds/start.py index 73dddf3..9882cf0 100644 --- a/subcmds/start.py +++ b/subcmds/start.py
@@ -104,6 +104,7 @@ def Execute(self, opt, args): nb = args[0] + self.TryOverrideManifestWithSmartSync() err_projects = [] err = [] projects = []