[Bps-public-commit] SD branch, master, updated. 0.73-22-g5c9f047

sunnavy at bestpractical.com sunnavy at bestpractical.com
Tue Nov 17 22:34:49 EST 2009


The branch, master has been updated
       via  5c9f0476c78d97554325d4264fada915d05a6026 (commit)
      from  4704b26b53e46be83128098204dba771b7bb2f0b (commit)

Summary of changes:
 lib/App/SD/Replica/gcode/PullEncoder.pm |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

- Log -----------------------------------------------------------------
commit 5c9f0476c78d97554325d4264fada915d05a6026
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Wed Nov 18 11:32:50 2009 +0800

    case fix for gcode

diff --git a/lib/App/SD/Replica/gcode/PullEncoder.pm b/lib/App/SD/Replica/gcode/PullEncoder.pm
index 61785fe..52cd1aa 100644
--- a/lib/App/SD/Replica/gcode/PullEncoder.pm
+++ b/lib/App/SD/Replica/gcode/PullEncoder.pm
@@ -353,12 +353,12 @@ sub transcode_one_txn {
 
     my $props = $txn->updates;
     foreach my $prop ( keys %{ $props || {} } ) {
+        $prop = lc $prop;
         $change->add_prop_change(
-            name => $PROP_MAP{$prop},
+            name => $PROP_MAP{$prop} || $prop,
             old  => $txn_wrapper->{pre_state}->{$PROP_MAP{$prop}},
             new  => $txn_wrapper->{post_state}->{$PROP_MAP{$prop}}
         );
-
     }
 
     $changeset->add_change( { change => $change } )

-----------------------------------------------------------------------



More information about the Bps-public-commit mailing list