[Bps-public-commit] r14303 - in Prophet/trunk: . lib/Prophet/CLI/Command t
sartak at bestpractical.com
sartak at bestpractical.com
Fri Jul 18 19:49:19 EDT 2008
Author: sartak
Date: Fri Jul 18 19:49:19 2008
New Revision: 14303
Modified:
Prophet/trunk/ (props changed)
Prophet/trunk/lib/Prophet/CLI/Command/Show.pm
Prophet/trunk/lib/Prophet/Record.pm
Prophet/trunk/lib/Prophet/Replica.pm
Prophet/trunk/t/config.t
Log:
Modified: Prophet/trunk/lib/Prophet/CLI/Command/Show.pm
==============================================================================
--- Prophet/trunk/lib/Prophet/CLI/Command/Show.pm (original)
+++ Prophet/trunk/lib/Prophet/CLI/Command/Show.pm Fri Jul 18 19:49:19 2008
@@ -69,12 +69,12 @@
next if !defined($value);
# color if we can (and should)
- my ($colorized_field, $colorized_value) = ($field, $value);
+ my ($colorized_field, $colorized_value);
if ($colorize) {
($colorized_field,$colorized_value) = $record->colorize($field => $value);
}
- push @fields, [$field, $colorized_field, $colorized_value];
+ push @fields, [$field, ($colorized_field|| $field), ($colorized_value ||$value)];
# don't check length($field) here, since coloring will increase the
# length but we only care about display length
Modified: Prophet/trunk/lib/Prophet/Record.pm
==============================================================================
--- Prophet/trunk/lib/Prophet/Record.pm (original)
+++ Prophet/trunk/lib/Prophet/Record.pm Fri Jul 18 19:49:19 2008
@@ -314,7 +314,7 @@
}
}
if (@errors) {
- die join( '', @errors );
+ die join( '', @errors )."\n";
}
return 1;
}
Modified: Prophet/trunk/lib/Prophet/Replica.pm
==============================================================================
--- Prophet/trunk/lib/Prophet/Replica.pm (original)
+++ Prophet/trunk/lib/Prophet/Replica.pm Fri Jul 18 19:49:19 2008
@@ -426,10 +426,12 @@
if ( $self->db_uuid && $args{for}->db_uuid && $self->db_uuid ne $args{for}->db_uuid ) {
if ($args{force}) {
- warn "You are merging two different databases! This is highly unusual.";
+ warn "WARNING: You are merging two different databases!\n";
}
else {
- confess "You are trying to merge two different databases! If you really want to do this, try adding a --force argument.\n"
+ die "You are trying to merge two different databases! This is NOT\n".
+ "recommended. If you really want to do this, add '--force' to\n".
+ "your commandline.\n\n"
. "Local database: " . $self->db_uuid . "\n"
. "Remote database: " . $args{for}->db_uuid . "\n";
}
Modified: Prophet/trunk/t/config.t
==============================================================================
--- Prophet/trunk/t/config.t (original)
+++ Prophet/trunk/t/config.t Fri Jul 18 19:49:19 2008
@@ -5,7 +5,7 @@
use Prophet::Test 'no_plan';
use File::Temp qw'tempdir';
$ENV{'PROPHET_REPO'} = tempdir( CLEANUP => 0 ) . '/repo-' . $$;
-
+delete $ENV{'PROPHET_APP_CONFIG'};
use_ok('Prophet::CLI');
# Test basic config file parsing
More information about the Bps-public-commit
mailing list