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

sunnavy at bestpractical.com sunnavy at bestpractical.com
Thu Jun 4 02:19:17 EDT 2009


The branch, master has been updated
       via  ae4d1d67bcce1679ef251ccc569695d97c195607 (commit)
      from  e177896ba4bc913fc24709767c88f832e7b0ecaf (commit)

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

- Log -----------------------------------------------------------------
commit ae4d1d67bcce1679ef251ccc569695d97c195607
Author: sunnavy <sunnavy at gmail.com>
Date:   Thu Jun 4 14:19:05 2009 +0800

    updated_after must get a DateTime object as arg

diff --git a/lib/App/SD/Replica/gcode/PullEncoder.pm b/lib/App/SD/Replica/gcode/PullEncoder.pm
index 1672df6..6247fcc 100644
--- a/lib/App/SD/Replica/gcode/PullEncoder.pm
+++ b/lib/App/SD/Replica/gcode/PullEncoder.pm
@@ -69,14 +69,15 @@ Returns a array of all tickets found matching your QUERY hash.
 sub find_matching_tickets {
     my $self                   = shift;
     my %query                  = (@_);
-    my $last_changeset_seen_dt = $self->_only_pull_tickets_modified_after();
+    my $last_changeset_seen_dt = $self->_only_pull_tickets_modified_after()
+      || DateTime->from_epoch( epoch => 0 );
     $self->sync_source->log("Searching for tickets");
     require Net::Google::Code::Issue::Search;
     my $search = Net::Google::Code::Issue::Search->new(
         project => $self->sync_source->project,
     );
 
-    if ( $search->updated_after($last_changeset_seen_dt) ) {
+    if ( $search->updated_after( $last_changeset_seen_dt ) ) {
         return $search->results;
     }
     else {

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



More information about the Bps-public-commit mailing list