lib/lolcommits/backends/mercurial_info.rb in lolcommits-0.13.1 vs lib/lolcommits/backends/mercurial_info.rb in lolcommits-0.14.0
- old
+ new
@@ -18,19 +18,19 @@
end
Mercurial.configure do |conf|
conf.hg_binary_path = 'hg'
end
- debug 'MercurialInfo: parsed the following values from commit:'
- debug "MercurialInfo: \t#{message}"
- debug "MercurialInfo: \t#{sha}"
- debug "MercurialInfo: \t#{repo_internal_path}"
- debug "MercurialInfo: \t#{repo}"
- debug "MercurialInfo: \t#{branch}"
- debug "MercurialInfo: \t#{commit_date}"
- debug "MercurialInfo: \t#{author_name}" if author_name
- debug "MercurialInfo: \t#{author_email}" if author_email
+ debug 'parsed the following values from commit:'
+ debug "\t#{message}"
+ debug "\t#{sha}"
+ debug "\t#{repo_internal_path}"
+ debug "\t#{repo}"
+ debug "\t#{branch}"
+ debug "\t#{commit_date}"
+ debug "\t#{author_name}" if author_name
+ debug "\t#{author_email}" if author_email
end
def branch
@branch ||= last_commit.branch_name
end
@@ -69,9 +69,13 @@
def commit_date
@commit_date ||= last_commit.date.utc
end
private
+
+ def debug(message)
+ super("#{self.class}: #{message}")
+ end
def repository(path = '.')
@repository ||= Mercurial::Repository.open(path)
end