Sha256: 337808aa24012be5c6d33a297e25a2cd56ad17bc3619ef91509ea4643dd3c0dd

Contents?: true

Size: 503 Bytes

Versions: 1

Compression:

Stored size: 503 Bytes

Contents

module Amp
  module Mercurial
    module RevlogSupport
      module Node
        # the null node ID - just 20 null bytes
        NULL_ID = "\0" * 20
        # -1 is the null revision (the last one in the index)
        NULL_REV = -1
        
        ##
        # Returns the node in a short hexadecimal format - only 6 bytes => 12 hex bytes
        #
        # @return [String] the node, in hex, and chopped a bit
        def short(node)
          node.short_hex
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
amp-0.5.3 lib/amp/repository/mercurial/revlogs/node.rb