Darcs::Inventory::Diff - Compute the difference between two darcs inventories


Darcs-Inventory documentation  | view source Contained in the Darcs-Inventory distribution.

Index


NAME

Top

Darcs::Inventory::Diff - Compute the difference between two darcs inventories

SYNOPSIS

Top

 use Darcs::Inventory;
 use Darcs::Inventory::Diff;
 my $a = Darcs::Inventory->new($repo_a);
 my $b = Darcs::Inventory->new($repo_b);
 my ($not_in_a, $not_in_b) = darcs_inventory_diff($a, $b);

 for (@$not_in_a) {
     print "-".$_->name."\n";
 }

 for (@$not_in_b) {
     print "+".$_->name."\n";
 }

DESCRIPTION

Top

Darcs::Inventory::Diff computes the difference between two Darcs::Inventorys.

FUNCTIONS

Top

darcs_inventory_diff($a, $b)

Compute the difference between Darcs::Inventorys $a and $b. It returns 2 array refs. The first is a list of Darcs::Inventory::Patches that were in $b but not in $a. The second is a list of Darcs::Inventory::Patches that were in $a but not in $b.

SEE ALSO

Top

Darcs::Inventory, Darcs::Inventory::Patch

COPYRIGHT

Top

AUTHOR

Top

David Caldwell <david@porkrind.org>


Darcs-Inventory documentation  | view source Contained in the Darcs-Inventory distribution.