class RubyCritic::SourceControlSystem::Mercurial
def self.supported?
def self.supported? hg_verify = `hg verify 2>&1` hg_verify && $CHILD_STATUS.success? end
def self.to_s
def self.to_s 'Mercurial' end
def date_of_last_commit(path)
def date_of_last_commit(path) `hg log #{path.shellescape} --template '{date|isodate}' --limit 1`.chomp end
def revision?
def revision? false end
def revisions_count(path)
def revisions_count(path) `hg log #{path.shellescape} --template '1'`.size end