Darcs::Inventory::Diff - Compute the difference between two darcs inventories
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"; }
Darcs::Inventory::Diff computes the difference between two Darcs::Inventorys.
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.
Darcs::Inventory, Darcs::Inventory::Patch
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
David Caldwell <david@porkrind.org>
To install Darcs::Inventory, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Darcs::Inventory
CPAN shell
perl -MCPAN -e shell install Darcs::Inventory
For more information on module installation, please visit the detailed CPAN module installation guide.