diff options
| author | LaMont Jones <lamontjones@google.com> | 2021-11-18 22:40:18 +0000 |
|---|---|---|
| committer | LaMont Jones <lamontjones@google.com> | 2022-02-17 21:57:55 +0000 |
| commit | cc879a97c3e2614d19b15b4661c3cab4d33139c9 (patch) | |
| tree | 69d225e9f0e9d79fec8f423d9c40c275f0bf3b8c /subcmds/prune.py | |
| parent | 87cce68b28c34fa86895baa8d7f48307382e6c75 (diff) | |
| download | git-repo-cc879a97c3e2614d19b15b4661c3cab4d33139c9.tar.gz | |
Add multi-manifest support with <submanifest> elementv2.22
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 <lamontjones@google.com>
Reviewed-by: Mike Frysinger <vapier@google.com>
Diffstat (limited to 'subcmds/prune.py')
| -rw-r--r-- | subcmds/prune.py | 4 |
1 files changed, 2 insertions, 2 deletions
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): | |||
| 31 | return project.PruneHeads() | 31 | return project.PruneHeads() |
| 32 | 32 | ||
| 33 | def Execute(self, opt, args): | 33 | def Execute(self, opt, args): |
| 34 | projects = self.GetProjects(args) | 34 | projects = self.GetProjects(args, all_manifests=not opt.this_manifest_only) |
| 35 | 35 | ||
| 36 | # NB: Should be able to refactor this module to display summary as results | 36 | # NB: Should be able to refactor this module to display summary as results |
| 37 | # come back from children. | 37 | # come back from children. |
| @@ -63,7 +63,7 @@ class Prune(PagedCommand): | |||
| 63 | if project != branch.project: | 63 | if project != branch.project: |
| 64 | project = branch.project | 64 | project = branch.project |
| 65 | out.nl() | 65 | out.nl() |
| 66 | out.project('project %s/' % project.relpath) | 66 | out.project('project %s/' % project.RelPath(local=opt.this_manifest_only)) |
| 67 | out.nl() | 67 | out.nl() |
| 68 | 68 | ||
| 69 | print('%s %-33s ' % ( | 69 | print('%s %-33s ' % ( |
