dumpdata.pm #4

  • //
  • guest/
  • perforce_software/
  • revml/
  • lib/
  • VCP/
  • Filter/
  • dumpdata.pm
  • View
  • Commits
  • Open Download .zip Download (1 KB)
package VCP::Filter::dumpdata ;

=head1 NAME

VCP::Filter::dumpdata - developement output filter

=head1 DESCRIPTION

Dump all data structures.  Requires the module BFD, which is not installed
automatically.  Dumps to the log file.

Not a supported module, API and behavior may change without warning.

=cut

$VERSION = 0.1 ;

@ISA = qw( VCP::Filter );

use strict ;

#use base qw( VCP::Filter );

use VCP::Filter;
use VCP::Logger qw( lg );

sub handle_header {
   my $self = shift;
   require BFD; ## load lazily so as not to force all users to have BFD
   lg BFD::d_to_string( "for ", ref $self->dest, $_[0] );
   $self->dest->handle_header( @_ );
}

sub handle_rev {
   my $self = shift;
   lg BFD::d_to_string( "for ", ref $self->dest, $_[0]->as_hash );
   $self->dest->handle_rev( @_ );
}


sub handle_footer {
   my $self = shift;
   lg BFD::d_to_string( "for ", ref $self->dest, $_[0] );
   $self->dest->handle_footer( @_ );
}


=head1 AUTHOR

Barrie Slaymaker <barries@slaysys.com>

=head1 COPYRIGHT

Copyright (c) 2000, 2001, 2002 Perforce Software, Inc.
All rights reserved.

See L<VCP::License|VCP::License> (C<vcp help license>) for the terms of use.

=cut

1
# Change User Description Committed
#4 4496 Barrie Slaymaker - minor POD cleanups to prevent nags when building VCP::Help
#3 4488 Barrie Slaymaker - BFD and Text::Table no longer required modules
#2 4021 Barrie Slaymaker - Remove all phashes and all base & fields pragmas
- Work around SWASHGET error
#1 3498 Barrie Slaymaker - Fix changeset boundary detection bug in VCP::Dest::p4