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

sunnavy at bestpractical.com sunnavy at bestpractical.com
Thu Jun 4 02:12:00 EDT 2009


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

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

- Log -----------------------------------------------------------------
commit e177896ba4bc913fc24709767c88f832e7b0ecaf
Author: sunnavy <sunnavy at gmail.com>
Date:   Thu Jun 4 14:11:50 2009 +0800

    we don't need the dirty hack of time_zone stuff for gcode

diff --git a/lib/App/SD/Replica/gcode/PullEncoder.pm b/lib/App/SD/Replica/gcode/PullEncoder.pm
index bb19cce..1672df6 100644
--- a/lib/App/SD/Replica/gcode/PullEncoder.pm
+++ b/lib/App/SD/Replica/gcode/PullEncoder.pm
@@ -84,6 +84,18 @@ sub find_matching_tickets {
     }
 }
 
+sub _only_pull_tickets_modified_after {
+    my $self = shift;
+
+    my $last_pull = $self->sync_source->upstream_last_modified_date();
+    return unless $last_pull;
+    my $before = App::SD::Util::string_to_datetime($last_pull);
+    die "Failed to parse '" . $self->sync_source->upstream_last_modified_date() . "' as a timestamp"
+        unless ($before);
+
+    return $before;
+}
+
 sub translate_ticket_state {
     my $self         = shift;
     my $ticket       = shift;

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



More information about the Bps-public-commit mailing list