From cc879a97c3e2614d19b15b4661c3cab4d33139c9 Mon Sep 17 00:00:00 2001 From: LaMont Jones Date: Thu, 18 Nov 2021 22:40:18 +0000 Subject: Add multi-manifest support with element To be addressed in another change: - a partial `repo sync` (with a list of projects/paths to sync) requires `--this-tree-only`. Change-Id: I6c7400bf001540e9d7694fa70934f8f204cb5f57 Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/322657 Tested-by: LaMont Jones Reviewed-by: Mike Frysinger --- subcmds/prune.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'subcmds/prune.py') diff --git a/subcmds/prune.py b/subcmds/prune.py index 584ee7ed..251accaa 100644 --- a/subcmds/prune.py +++ b/subcmds/prune.py @@ -31,7 +31,7 @@ class Prune(PagedCommand): return project.PruneHeads() def Execute(self, opt, args): - projects = self.GetProjects(args) + projects = self.GetProjects(args, all_manifests=not opt.this_manifest_only) # NB: Should be able to refactor this module to display summary as results # come back from children. @@ -63,7 +63,7 @@ class Prune(PagedCommand): if project != branch.project: project = branch.project out.nl() - out.project('project %s/' % project.relpath) + out.project('project %s/' % project.RelPath(local=opt.this_manifest_only)) out.nl() print('%s %-33s ' % ( -- cgit v1.2.3-54-g00ecf