From ecff4f17b08f791466b73d935c772de57f2257e6 Mon Sep 17 00:00:00 2001 From: "Shawn O. Pearce" Date: Tue, 29 Nov 2011 15:01:33 -0800 Subject: Describe the repo launch version in `repo version` repo version v1.7.8 (from https://android.googlesource.com/tools/repo.git) repo launcher version 1.14 (from /home/sop/bin/repo) git version 1.7.8.rc2.256.gcc761 Python 2.6.5 (r265:79063, Apr 16 2010, 13:57:41) [GCC 4.4.3] Change-Id: Ifcbe5b0e226a1a6ca85455eb62e4da5e9a0f0ca0 --- subcmds/version.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'subcmds/version.py') diff --git a/subcmds/version.py b/subcmds/version.py index 83e77d0b..03195f88 100644 --- a/subcmds/version.py +++ b/subcmds/version.py @@ -19,6 +19,9 @@ from git_command import git from project import HEAD class Version(Command, MirrorSafeCommand): + wrapper_version = None + wrapper_path = None + common = False helpSummary = "Display the version of repo" helpUsage = """ @@ -31,5 +34,10 @@ class Version(Command, MirrorSafeCommand): print 'repo version %s' % rp.work_git.describe(HEAD) print ' (from %s)' % rem.url + + if Version.wrapper_path is not None: + print 'repo launcher version %s' % Version.wrapper_version + print ' (from %s)' % Version.wrapper_path + print git.version().strip() print 'Python %s' % sys.version -- cgit v1.2.3-54-g00ecf