Sha256: df85e4d2a423ae9fb87d17ee3968fe42215e6b388b6f7275bad74446015faf08

Contents?: true

Size: 853 Bytes

Versions: 6

Compression:

Stored size: 853 Bytes

Contents

module Mercurial
  
  #
  # The class represents Mercurial tag. Obtained by running an +hg tags+ command.
  #
  # The class represents Tag object itself, {Mercurial::TagFactory TagFactory} is responsible
  # for assembling instances of Tag. For the list of all possible tag-related operations please 
  # check {Mercurial::TagFactory TagFactory}.
  #
  # For general information on Mercurial tags:
  #
  # http://mercurial.selenic.com/wiki/Tag
  #
  class Tag
    
    # Instance of {Mercurial::Repository Repository}.
    attr_reader :repository
    
    # Name of the tag.
    attr_reader :name
    
    # Mercurial changeset ID of the tag. 40-chars long SHA1 hash.
    attr_reader :hash_id
    
    def initialize(repository, name, hash_id)
      @repository = repository
      @name       = name
      @hash_id    = hash_id
    end
    
  end
  
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
mercurial-ruby-0.7.12 lib/mercurial-ruby/tag.rb
mercurial-ruby-0.7.11 lib/mercurial-ruby/tag.rb
mercurial-ruby-0.7.10 lib/mercurial-ruby/tag.rb
mercurial-ruby-0.7.9 lib/mercurial-ruby/tag.rb
mercurial-ruby-0.7.8 lib/mercurial-ruby/tag.rb
mercurial-ruby-0.7.7 lib/mercurial-ruby/tag.rb