From 51021fb209b118e6ff4350016657ce5f020b1bc2 Mon Sep 17 00:00:00 2001 From: Gavin Mak Date: Tue, 12 May 2026 20:21:14 +0000 Subject: [PATCH] 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 Tested-by: Gavin Mak Commit-Queue: Gavin Mak --- subcmds/abandon.py | 1 + subcmds/info.py | 2 ++ subcmds/start.py | 1 + 3 files changed, 4 insertions(+) diff --git a/subcmds/abandon.py b/subcmds/abandon.py index f1688e7b6..38f6ca43a 100644 --- a/subcmds/abandon.py +++ b/subcmds/abandon.py @@ -94,6 +94,7 @@ It is equivalent to "git branch -D ". 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 e404dd420..19bb36d2a 100644 --- a/subcmds/info.py +++ b/subcmds/info.py @@ -147,6 +147,8 @@ class Info(PagedCommand): 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 73dddf3f1..9882cf0d0 100644 --- a/subcmds/start.py +++ b/subcmds/start.py @@ -104,6 +104,7 @@ revision specified in the manifest. def Execute(self, opt, args): nb = args[0] + self.TryOverrideManifestWithSmartSync() err_projects = [] err = [] projects = []