David Caldwell > Darcs-Inventory-1.7 > Darcs::Inventory::Diff

Download:
Darcs-Inventory-1.7.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Source  

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>

syntax highlighting: