[Bps-public-commit] r16179 - sd/trunk/lib/App/SD/Replica/rt

ruz at bestpractical.com ruz at bestpractical.com
Wed Oct 1 10:39:48 EDT 2008


Author: ruz
Date: Wed Oct  1 10:39:48 2008
New Revision: 16179

Modified:
   sd/trunk/lib/App/SD/Replica/rt/PullEncoder.pm

Log:
* minor

Modified: sd/trunk/lib/App/SD/Replica/rt/PullEncoder.pm
==============================================================================
--- sd/trunk/lib/App/SD/Replica/rt/PullEncoder.pm	(original)
+++ sd/trunk/lib/App/SD/Replica/rt/PullEncoder.pm	Wed Oct  1 10:39:48 2008
@@ -320,14 +320,15 @@
 sub _recode_content_update {
     my $self   = shift;
     my %args   = validate( @_, { txn => 1, ticket => 1, changeset => 1 } );
+    my $url = $self->sync_source->remote_url . "/transaction/" . $args{'txn'}->{'id'};
     my $change = Prophet::Change->new(
         {   record_type => 'comment',
-            record_uuid => $self->sync_source->uuid_for_url( $self->sync_source->remote_url . "/transaction/" . $args{'txn'}->{'id'} ),
-            change_type => 'add_file'
+            record_uuid => $self->sync_source->uuid_for_url( $url ),
+            change_type => 'add_file',
         }
     );
 
-        $change->add_prop_change( name => 'created', old  => undef, new  => $self->date_to_iso($args{'txn'}->{'Created'}));
+    $change->add_prop_change( name => 'created', old  => undef, new  => $self->date_to_iso($args{'txn'}->{'Created'}));
 
     $change->add_prop_change( name => 'type', old  => undef, new  => $args{'txn'}->{'Type'});
     $change->add_prop_change( name => 'creator', old  => undef, new  => $self->resolve_user_id_to( email => $args{'txn'}->{'Creator'}));



More information about the Bps-public-commit mailing list