[Bps-public-commit] r14468 - in Prophet/trunk: .
sartak at bestpractical.com
sartak at bestpractical.com
Thu Jul 24 05:00:14 EDT 2008
Author: sartak
Date: Thu Jul 24 05:00:14 2008
New Revision: 14468
Modified:
Prophet/trunk/ (props changed)
Prophet/trunk/lib/Prophet/PropChange.pm
Log:
r64995 at onn: sartak | 2008-07-24 04:57:50 -0400
Fix propchange->summary to display the correct removed value
Modified: Prophet/trunk/lib/Prophet/PropChange.pm
==============================================================================
--- Prophet/trunk/lib/Prophet/PropChange.pm (original)
+++ Prophet/trunk/lib/Prophet/PropChange.pm Thu Jul 24 05:00:14 2008
@@ -47,21 +47,14 @@
my $old = $self->old_value;
my $new = $self->new_value;
- if (!defined($old)) {
- return sprintf 'Property "%s" was added, value "%s".',
- $name,
- $new;
+ if (!defined($old) {
+ return qq{Property "$name" was added, value "$new".};
}
elsif (!defined($new)) {
- return sprintf 'Property "%s" was removed, value was "%s".',
- $name,
- $new;
+ return qq{Property "$name" was removed, value was "$old".};
}
- return sprintf 'Property "%s" changed from "%s" to "%s".',
- $name,
- $old,
- $new;
+ return qq{Property "$name" changed from "$old" to "$new".};
}
__PACKAGE__->meta->make_immutable;
More information about the Bps-public-commit
mailing list