++ed by:

1 non-PAUSE user.

David Caldwell
and 1 contributors

NAME

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

SYNOPSIS

 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

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

FUNCTIONS

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

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

COPYRIGHT

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

Copyright (C) 2007-2012 David Caldwell

AUTHOR

David Caldwell <david@porkrind.org>