summaryrefslogtreecommitdiffstats
path: root/subcmds/overview.py
diff options
context:
space:
mode:
authorLaMont Jones <lamontjones@google.com>2021-11-18 22:40:18 +0000
committerLaMont Jones <lamontjones@google.com>2022-02-17 21:57:55 +0000
commitcc879a97c3e2614d19b15b4661c3cab4d33139c9 (patch)
tree69d225e9f0e9d79fec8f423d9c40c275f0bf3b8c /subcmds/overview.py
parent87cce68b28c34fa86895baa8d7f48307382e6c75 (diff)
downloadgit-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/overview.py')
-rw-r--r--subcmds/overview.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/subcmds/overview.py b/subcmds/overview.py
index 63f5a79e..11dba95f 100644
--- a/subcmds/overview.py
+++ b/subcmds/overview.py
@@ -47,7 +47,7 @@ are displayed.
47 47
48 def Execute(self, opt, args): 48 def Execute(self, opt, args):
49 all_branches = [] 49 all_branches = []
50 for project in self.GetProjects(args): 50 for project in self.GetProjects(args, all_manifests=not opt.this_manifest_only):
51 br = [project.GetUploadableBranch(x) 51 br = [project.GetUploadableBranch(x)
52 for x in project.GetBranches()] 52 for x in project.GetBranches()]
53 br = [x for x in br if x] 53 br = [x for x in br if x]
@@ -76,7 +76,7 @@ are displayed.
76 if project != branch.project: 76 if project != branch.project:
77 project = branch.project 77 project = branch.project
78 out.nl() 78 out.nl()
79 out.project('project %s/' % project.relpath) 79 out.project('project %s/' % project.RelPath(local=opt.this_manifest_only))
80 out.nl() 80 out.nl()
81 81
82 commits = branch.commits 82 commits = branch.commits