<s> from __future__ import print_function <EOL> import sys <EOL> from command import Command , MirrorSafeCommand <EOL> from git_command import git <EOL> from git_refs import HEAD <EOL> class Version ( Command , MirrorSafeCommand ) : <EOL> wrapper_version = None <EOL> wrapper_path = None <EOL> common = False <EOL> helpSummary = "<STR_LIT>" <EOL> helpUsage = """<STR_LIT>""" <EOL> def Execute ( self , opt , args ) : <EOL> rp = self . manifest . repoProject <EOL> rem = rp . GetRemote ( rp . remote . name ) <EOL> print ( '<STR_LIT>' % rp . work_git . describe ( HEAD ) ) <EOL> print ( '<STR_LIT>' % rem . url ) <EOL> if Version . wrapper_path is not None : <EOL> print ( '<STR_LIT>' % Version . wrapper_version ) <EOL> print ( '<STR_LIT>' % Version . wrapper_path ) <EOL> print ( git . version ( ) . strip ( ) ) <EOL> print ( '<STR_LIT>' % sys . version ) </s>
