Sha256: 43d2eb83742d7ea3501aa353a934179f7b1598ea07cff8e1b311a27d57c11e3f
Contents?: true
Size: 764 Bytes
Versions: 1
Compression:
Stored size: 764 Bytes
Contents
require_relative 'repo' module HGTK class Hg attr_reader :dir # @param kwargs [Hash] # @option kwargs [String?] :dir Path to the hgtk command. Current working # directory by default. def initialize **kwargs @dir = kwargs.fetch :dir, Dir.pwd end # Check repo status (uncommitted changes). def status Dir["#{@dir}/*/.hg"] .map { |path| File.absolute_path File.dirname path } .each do |path| repo = HGTK::Repo.new path end end # Check for incoming changesets. def incoming end # Check for outgoing changesets. def outgoing end # Synchronize repository by pulling, then pushing. def sync end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
hgtk-0.1.0 | lib/hgtk/hg.rb |