예제 #1
0
    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
예제 #2
0
  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
예제 #3
0
  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
예제 #4
0
    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)
예제 #5
0
    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)