#!/usr/local/bin/perl -w
use strict;
use VCP::Debug qw( :debug );
BEGIN { enable_debug ".*"; }
use VCP::HeadRevsDB;
my $db = VCP::HeadRevsDB->new( @ARGV ? ( StoreLoc => shift ) : () );
$db->open_existing_db;
my( @keys, @vals );
my $w = 0;
while ( my ( $k, $v ) = each %{$db->{Hash}} ) {
$w = length $k if length $k > $w;
push @keys, $k;
push @vals, [ $db->unpack_values( $v ) ];
}
my $f = "%-${w}s => %s\n";
while ( @keys ) {
my @v = @{shift @vals};
printf $f,
shift @keys,
@v == 1
? $v[0]
: join join( ",", @v ), "(", ")";
}
| # | Change | User | Description | Committed | |
|---|---|---|---|---|---|
| #7 | 3510 | Barrie Slaymaker | - VSS --continue and branching support | ||
| #6 | 2959 | John Fetkovich |
added dump method to lib/VCP/DB_File/sdbm.pm to dump keys => values from a sdbm file. removed similar code from bin/dump_head_revs, bin/dump_rev_map and bin/dump_main_branch_id and called this method instead. also made parse_files_and_revids_from_head_revs_db sub in TestUtils to use in test suites instead of parse_files_and_revids_from_p4_files et. al. |
||
| #5 | 2874 | Barrie Slaymaker | Improve printing of empty strings | ||
| #4 | 2870 | Barrie Slaymaker | Fix sort, un/packing empty value problems | ||
| #3 | 2806 | Barrie Slaymaker | Update bin/dump_* to work with new multi-field key format. | ||
| #2 | 2770 | Barrie Slaymaker | tweak dump utils: sort output for readability | ||
| #1 | 2769 | Barrie Slaymaker |
Suppress extraneous stale db warning, demote the stale state db detection to RevMapDB, allow the head revs db to be dumped. |