class Autobuild::Importer::Status

Instances of the Importer::Status class represent the status of a current checkout w.r.t. the remote repository.

Constants

ADVANCED

Local contains all data that remote has, but has new commits

NEEDS_MERGE

Next update will require a merge

SIMPLE_UPDATE

Next update will be simple (no merge)

UP_TO_DATE

Remote and local are at the same point

Attributes

local_commits[RW]

An array of strings that represent commits that are in the local repository and not in the remote one (would be pushed by an update)

remote_commits[RW]

An array of strings that represent commits that are in the remote repository and not in this one (would be merged by an update)

status[RW]

The update status

uncommitted_code[RW]

True if there is code in the working copy that is not committed

unexpected_working_copy_state[R]

A list of messages describing differences between the local working copy and its expected state

On git, it would for instance mention that currently checked out branch is not the one autoproj expects

@return [Array<String>]

Public Class Methods

new(status = -1) click to toggle source
# File lib/autobuild/importer.rb, line 64
def initialize(status = -1)
    @status = status
    @unexpected_working_copy_state = Array.new
    @uncommitted_code = false
    @remote_commits = Array.new
    @local_commits  = Array.new
end