Sha256: 6f22bcb7be7349892b9d923491663911137978c079dd2cd2f843bbb8fc3c4ab7

Contents?: true

Size: 900 Bytes

Versions: 11

Compression:

Stored size: 900 Bytes

Contents

require 'autoproj'
require 'autoproj/cli/base'

module Autoproj
    module CLI
        class Log < Base
            def run(args, options = Hash.new)
                ws = Workspace.from_environment
                ws.load_config

                if !ws.config.import_log_enabled?
                    Autoproj.error "import log is disabled on this install"
                    return
                elsif !Ops::Snapshot.update_log_available?(ws.manifest)
                    Autoproj.error "import log is not available on this install, the main build configuration repository is not using git"
                    return
                end

                exec(Autobuild.tool(:git), "--git-dir=#{ws.config_dir}/.git", 'reflog',
                     Ops::Snapshot.import_state_log_ref, '--format=%Cgreen%gd %Cblue%cr %Creset%gs',
                     *args)
            end
        end
    end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
autoproj-2.0.0.rc4 lib/autoproj/cli/log.rb
autoproj-2.0.0.rc3 lib/autoproj/cli/log.rb
autoproj-2.0.0.rc2 lib/autoproj/cli/log.rb
autoproj-2.0.0.rc1 lib/autoproj/cli/log.rb
autoproj-2.0.0.b7 lib/autoproj/cli/log.rb
autoproj-2.0.0.b6 lib/autoproj/cli/log.rb
autoproj-2.0.0.b5 lib/autoproj/cli/log.rb
autoproj-2.0.0.b4 lib/autoproj/cli/log.rb
autoproj-2.0.0.b3 lib/autoproj/cli/log.rb
autoproj-2.0.0.b2 lib/autoproj/cli/log.rb
autoproj-2.0.0.b1 lib/autoproj/cli/log.rb