store

package
v0.0.0-...-3e59e0e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 21, 2014 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Overview

Package store provides access to Mercurial's ‘store’ repository format.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manifest

type Manifest []ManifestEnt

func BuildManifest

func BuildManifest(r *revlog.Rec, fb *revlog.FileBuilder) (m Manifest, err error)

func ParseManifestData

func ParseManifestData(data []byte) (m Manifest, err error)

func (Manifest) Map

func (list Manifest) Map() (m map[string]*ManifestEnt)

Create a map with filename keys from a list of manifest entries.

type ManifestEnt

type ManifestEnt struct {
	FileName string
	// contains filtered or unexported fields
}

func (*ManifestEnt) Id

func (e *ManifestEnt) Id() (revlog.NodeId, error)

func (*ManifestEnt) IsExecutable

func (e *ManifestEnt) IsExecutable() bool
func (e *ManifestEnt) IsLink() bool

type Manifests

type Manifests struct {
	*revlog.Index
}

func (*Manifests) LookupRevision

func (m *Manifests) LookupRevision(linkrev int, wantId revlog.NodeId) (r *revlog.Rec, err error)

type Store

type Store struct {
	// contains filtered or unexported fields
}

func New

func New(repoRoot string, requires map[string]bool) (s *Store)

func (*Store) OpenChangeLog

func (s *Store) OpenChangeLog() (*revlog.Index, error)

func (*Store) OpenManifests

func (s *Store) OpenManifests() (m *Manifests, err error)

func (*Store) OpenRevlog

func (s *Store) OpenRevlog(fileName string) (*revlog.Index, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL