def Execute(self, opt, args): rp = self.manifest.repoProject rem = rp.GetRemote(rp.remote.name) print 'repo version %s' % rp.work_git.describe(HEAD) print ' (from %s)' % rem.url print git.version().strip() print 'Python %s' % sys.version
def Execute(self, opt, args): rp = self.manifest.repoProject rem = rp.GetRemote(rp.remote.name) 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
def _CheckGitVersion(self): ver_str = git.version() if not ver_str.startswith('git version '): print >> sys.stderr, 'error: "%s" unsupported' % ver_str sys.exit(1) ver_str = ver_str[len('git version '):].strip() ver_act = tuple(map(lambda x: int(x), ver_str.split('.')[0:3])) if ver_act < MIN_GIT_VERSION: need = '.'.join(map(lambda x: str(x), MIN_GIT_VERSION)) print >> sys.stderr, 'fatal: git %s or later required' % need sys.exit(1)
def Execute(self, opt, args): rp = self.manifest.repoProject rem = rp.GetRemote(rp.remote.name) 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)