NAME

Darcs::Inventory - Read and parse a darcs version 1 or 2 inventory file

SYNOPSIS

use Darcs::Inventory;
$i = Darcs::Inventory->new("repo_dir");
$i = Darcs::Inventory->load("repo_dir/_darcs/inventory");
for ($i->patches) {
    print $_->info;
}
$i->format; # contents of _darcs/format, or "old", or "unknown"
$i->file;   # The path to the inventory file.

@raw = Darcs::Inventory::read("_darcs/inventory");
print $raw[0];         # Prints the unparsed contents of the
                       # first patch in the inventory file.