Sha256: 991ebc561b20edf0cb9e1131929364fec28bda627de627e34079e920a9379c09

Contents?: true

Size: 414 Bytes

Versions: 4

Compression:

Stored size: 414 Bytes

Contents

command :verify do |c|
  c.desc "Verifies the mercurial repository, checking for integrity errors"
  c.workflow :hg
  c.on_run do |opts, args|
    results = opts[:repository].verify
    puts "#{results.files} files, #{results.changesets} changesets, #{results.revisions} revisions"
    puts "#{results.errors} integrity errors, #{results.warnings} warnings." if results.errors > 0 || results.warnings > 0
  end
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
amp-0.5.2 lib/amp/commands/commands/workflows/hg/verify.rb
amp-0.5.1 lib/amp/commands/commands/workflows/hg/verify.rb
amp-pure-0.5.0 lib/amp/commands/commands/workflows/hg/verify.rb
amp-0.5.0 lib/amp/commands/commands/workflows/hg/verify.rb