[Bps-public-commit] r16470 - in sd/trunk/lib/App/SD/Replica: hm

jesse at bestpractical.com jesse at bestpractical.com
Tue Oct 21 21:52:54 EDT 2008


Author: jesse
Date: Tue Oct 21 21:52:54 2008
New Revision: 16470

Modified:
   sd/trunk/lib/App/SD/Replica/hm.pm
   sd/trunk/lib/App/SD/Replica/hm/PushEncoder.pm

Log:
* cleanups to the hm push encoder to actually do prop translation

Modified: sd/trunk/lib/App/SD/Replica/hm.pm
==============================================================================
--- sd/trunk/lib/App/SD/Replica/hm.pm	(original)
+++ sd/trunk/lib/App/SD/Replica/hm.pm	Tue Oct 21 21:52:54 2008
@@ -162,6 +162,7 @@
     completed_at             => 'completed',
     due                      => 'due',
     creator                  => 'creator',
+    milestone                => '_delete',
     attachment_count         => '_delete',
     depended_on_by_count     => '_delete',
     depended_on_by_summaries => '_delete',

Modified: sd/trunk/lib/App/SD/Replica/hm/PushEncoder.pm
==============================================================================
--- sd/trunk/lib/App/SD/Replica/hm/PushEncoder.pm	(original)
+++ sd/trunk/lib/App/SD/Replica/hm/PushEncoder.pm	Tue Oct 21 21:52:54 2008
@@ -163,7 +163,8 @@
     my $self = shift;
     my ($change) = validate_pos( @_, { isa => 'Prophet::Change' } );
 
-    my %props = map { $_->name => $_->new_value } $change->prop_changes;
+    my %props = $self->translate_props( $change );
+    #my %props = map { $_->name => $_->new_value } $change->prop_changes;
 
     my %attr;
     for my $key ( keys %props ) {



More information about the Bps-public-commit mailing list