Class: Amp::Bundles::BundleFileLog

Inherits:
FileLog show all
Includes:
BundleRevlog
Defined in:
lib/amp/revlogs/bundle_revlogs.rb

Constant Summary

Constants included from BundleRevlog

Amp::Bundles::BundleRevlog::BUNDLED_INDEX_ENTRY_SIZE

Constants included from RevlogSupport::Node

RevlogSupport::Node::NULL_ID, RevlogSupport::Node::NULL_REV

Instance Attribute Summary

Attributes inherited from Revlog

#data_file, #index, #index_file

Instance Method Summary collapse

Methods included from BundleRevlog

#add_group, #add_revision, #bundle_initialize, #bundled_base_revision_for_index, #bundled_revision?, #decompress_revision, #get_chunk, #revision_diff

Methods included from RevlogSupport::Node

#short

Methods inherited from FileLog

#add, #cmp, #decode_dir, #each, #encode_dir, #read, #read_meta, #renamed, #size, #unified_revision_diff

Methods inherited from Revlog

#[], #add_group, #add_revision, #all_indices, #ancestor, #ancestors, #base_revision_for_index, #check_inline_size, #checksize, #children, #cmp, #data_end_for_index, #data_size_for_index, #data_start_for_index, #decompress_revision, #descendants, #each, #empty?, #files, #find_missing, #get_chunk, #group, #heads, #id_match, #link_revision_for_index, #load_cache, #lookup_id, #node_id_for_index, #nodes_between, #open, #parent_indices_for_index, #parents_for_node, #partial_id_match, #reachable_nodes_for_node, #revision_diff, #revision_index_for_node, #size, #strip, #tip, #uncompressed_size_for_index, #unified_revision_diff

Methods included from Enumerable

#inject, #select_map

Constructor Details

#initialize(opener, path, bundle_file, link_mapper) ⇒ BundleFileLog

Returns a new instance of BundleFileLog.



236
237
238
239
240
241
# File 'lib/amp/revlogs/bundle_revlogs.rb', line 236

def initialize(opener, path, bundle_file, link_mapper)
  # This is the manifest initializer
  super(opener, path)
  # This is the bundle initializer
  bundle_initialize(opener, @index_file, bundle_file, link_mapper)
end