[Bps-public-commit] SD branch, master, updated. a70eb78982a99bd484d565bbbebb3de3cd757f38

jesse jesse at bestpractical.com
Wed May 6 21:17:40 EDT 2009


The branch, master has been updated
       via  a70eb78982a99bd484d565bbbebb3de3cd757f38 (commit)
      from  523a3cb433fb3629dcc6fa4631575d1a1df9a284 (commit)

Summary of changes:
 lib/App/SD/Replica/trac/PullEncoder.pm |    2 +-
 t/sd-trac/basic.t                      |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

- Log -----------------------------------------------------------------
commit a70eb78982a99bd484d565bbbebb3de3cd757f38
Author: Jesse Vincent <jesse at bestpractical.com>
Date:   Wed May 6 20:28:33 2009 -0400

    small fixes to the trac pull encoder

diff --git a/lib/App/SD/Replica/trac/PullEncoder.pm b/lib/App/SD/Replica/trac/PullEncoder.pm
index d511566..e563a3c 100644
--- a/lib/App/SD/Replica/trac/PullEncoder.pm
+++ b/lib/App/SD/Replica/trac/PullEncoder.pm
@@ -223,7 +223,7 @@ sub transcode_one_txn {
 
 
     if ($txn->is_create) {
-        return $self->transcode_create_txn(@_);
+        return $self->transcode_create_txn($txn,$ticket,$ticket_final);
     }
 
     my $ticket_uuid = $self->sync_source->uuid_for_remote_id( $ticket->{ $self->sync_source->uuid . '-id' } );
diff --git a/t/sd-trac/basic.t b/t/sd-trac/basic.t
index 64ed2d1..8ae1b31 100644
--- a/t/sd-trac/basic.t
+++ b/t/sd-trac/basic.t
@@ -65,8 +65,8 @@ unlike( $ticket->summary, qr/moose/, "The summary does not look like a moose" );
 my $history = $ticket->history;
 ok( $history, "The ticket has some history" );
 my @entries = @{ $history->entries };
+is( scalar @entries, 2, "There are 2 txns");
 my $first   = shift @entries;
-is( $entries[0], undef, "there is only one history entry. no create txn" );
 is( $first->category, 'Ticket' );
 
 

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



More information about the Bps-public-commit mailing list