# File lib/branch.rb, line 170
        def initialize(repo, version, travis, branch_suff)
            GitMaintain::checkDirectConstructor(self.class)

            @repo          = repo
            @travis        = travis
            @version       = version
            @branch_suff   = branch_suff

            if version =~ /^[0-9]+$/
                @local_branch  = @repo.versionToLocalBranch(@version, @branch_suff)
                @remote_branch = @repo.versionToStableBranch(@version)
                @branch_type = :std
                @verbose_name = "v"+version
            else
                @remote_branch = @local_branch = version
                @branch_type = :user_specified
                @verbose_name = version
            end

            @head          = @repo.runGit("rev-parse --verify --quiet #{@local_branch}")
            @remote_ref    = "#{@repo.stable_repo}/#{@remote_branch}"
            @stable_head   = @repo.runGit("rev-parse --verify --quiet #{@remote_ref}")
            @stable_base   = @repo.findStableBase(@local_branch)
        end