Sha256: 58941741cdd7e0c3c71e453dded85e44f843f1e2e48cc08de774f1356a4a0e85
Contents?: true
Size: 557 Bytes
Versions: 25
Compression:
Stored size: 557 Bytes
Contents
# frozen_string_literal: true module RubyCritic module SourceControlSystem class Mercurial < Base register_system def self.supported? `hg verify 2>&1` && $CHILD_STATUS.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
25 entries across 25 versions & 2 rubygems