summaryrefslogtreecommitdiffstats
path: root/subcmds/version.py
diff options
context:
space:
mode:
Diffstat (limited to 'subcmds/version.py')
-rw-r--r--subcmds/version.py8
1 files changed, 8 insertions, 0 deletions
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
19from project import HEAD 19from project import HEAD
20 20
21class Version(Command, MirrorSafeCommand): 21class Version(Command, MirrorSafeCommand):
22 wrapper_version = None
23 wrapper_path = None
24
22 common = False 25 common = False
23 helpSummary = "Display the version of repo" 26 helpSummary = "Display the version of repo"
24 helpUsage = """ 27 helpUsage = """
@@ -31,5 +34,10 @@ class Version(Command, MirrorSafeCommand):
31 34
32 print 'repo version %s' % rp.work_git.describe(HEAD) 35 print 'repo version %s' % rp.work_git.describe(HEAD)
33 print ' (from %s)' % rem.url 36 print ' (from %s)' % rem.url
37
38 if Version.wrapper_path is not None:
39 print 'repo launcher version %s' % Version.wrapper_version
40 print ' (from %s)' % Version.wrapper_path
41
34 print git.version().strip() 42 print git.version().strip()
35 print 'Python %s' % sys.version 43 print 'Python %s' % sys.version