class GemsStatus::HgCheckMessages
Public Class Methods
new()
click to toggle source
# File lib/gems-status/checkers/hg_check_messages.rb, line 8 def initialize Mercurial.configure do |conf| conf.hg_binary_path = "/usr/bin/hg" end end
Private Instance Methods
commit_key(commit)
click to toggle source
# File lib/gems-status/checkers/hg_check_messages.rb, line 29 def commit_key(commit) return commit.hash_id end
date(commit)
click to toggle source
# File lib/gems-status/checkers/hg_check_messages.rb, line 33 def date(commit) commit.date end
message(commit)
click to toggle source
# File lib/gems-status/checkers/hg_check_messages.rb, line 16 def message(commit) return commit.message end
messages(name, source_repo)
click to toggle source
# File lib/gems-status/checkers/hg_check_messages.rb, line 20 def messages(name, source_repo) if ! File.exists?(name) Mercurial::Repository.clone(source_repo, name, {}) end repo = Mercurial::Repository.open(name) repo.pull return repo.commits end