Sha256: d1a201a9ceac476a76646e15ece8c66b4ac817e571efc236e10a44a9598f1bd3
Contents?: true
Size: 515 Bytes
Versions: 1
Compression:
Stored size: 515 Bytes
Contents
module RubyCritic module SourceControlSystem class Mercurial < Base register_system def self.supported? `hg verify 2>&1` && $?.success? end def self.to_s 'Mercurial' end def revisions_count(path) `hg log #{path.shellescape} --template '1'`.size end def date_of_last_commit(path) `hg log #{path.shellescape} --template '{date|isodate}' --limit 1`.chomp end def revision? false end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rubycritic-2.9.3 | lib/rubycritic/source_control_systems/mercurial.rb |