summaryrefslogtreecommitdiffstats
path: root/subcmds/info.py
diff options
context:
space:
mode:
authorDiogo Ferreira <diogo@underdev.org>2019-10-14 16:28:46 +0100
committerMike Frysinger <vapier@google.com>2020-01-24 14:46:30 +0000
commite4d20372b26521ca936bdba7f4d99c47423b9c4a (patch)
treeaf007c0f7b50f5b20624f7c24f2c3831dd02b87d /subcmds/info.py
parent1e01a7444536b4865feb94c398b68a936a463ddc (diff)
downloadgit-repo-e4d20372b26521ca936bdba7f4d99c47423b9c4a.tar.gz
info: Add the manifest revision
After Ib546f5ebbc8a23875fbd14bf166fbe95b7dd244e, repo info now displays the current project revision in the 'Current revision' field. While the output is more consistent, there are use cases for the revision expression as shown in the manifest. This patch re-adds the manifest revision as a new 'Manifest revision' field. Change-Id: I50c1559dcb7ceb69af07352b956d78f85b8f592e Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/240799 Tested-by: Diogo Ferreira <deovferreira@gmail.com> Reviewed-by: Mike Frysinger <vapier@google.com>
Diffstat (limited to 'subcmds/info.py')
-rw-r--r--subcmds/info.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/subcmds/info.py b/subcmds/info.py
index b1e92e3e..d62e1e64 100644
--- a/subcmds/info.py
+++ b/subcmds/info.py
@@ -103,6 +103,10 @@ class Info(PagedCommand):
103 self.headtext(currentBranch) 103 self.headtext(currentBranch)
104 self.out.nl() 104 self.out.nl()
105 105
106 self.heading("Manifest revision: ")
107 self.headtext(p.revisionExpr)
108 self.out.nl()
109
106 localBranches = list(p.GetBranches().keys()) 110 localBranches = list(p.GetBranches().keys())
107 self.heading("Local Branches: ") 111 self.heading("Local Branches: ")
108 self.redtext(str(len(localBranches))) 112 self.redtext(str(len(localBranches)))