[Bps-public-commit] r16238 - in Pushmi/trunk: Pushmi-Admin/lib/Pushmi/Admin

alexmv at bestpractical.com alexmv at bestpractical.com
Tue Oct 7 15:28:08 EDT 2008


Author: alexmv
Date: Tue Oct  7 15:28:08 2008
New Revision: 16238

Modified:
   Pushmi/trunk/   (props changed)
   Pushmi/trunk/Pushmi-Admin/lib/Pushmi/Admin/Watcher.pm

Log:
 r37994 at kohr-ah:  chmrr | 2008-10-07 15:27:26 -0400
  * Don't auto-sync if there are no revs


Modified: Pushmi/trunk/Pushmi-Admin/lib/Pushmi/Admin/Watcher.pm
==============================================================================
--- Pushmi/trunk/Pushmi-Admin/lib/Pushmi/Admin/Watcher.pm	(original)
+++ Pushmi/trunk/Pushmi-Admin/lib/Pushmi/Admin/Watcher.pm	Tue Oct  7 15:28:08 2008
@@ -48,9 +48,10 @@
             )->publish;
         }
         # Sync if we're more than 10 revisions, or 5 minutes, behind
-        if ($replica->status eq "behind"
-            and (  $replica->remote_revision - $replica->local_revision >= 10
-                or (time - $replica->cache->{remote_date} > 5*60 ))
+        if (    $replica->status eq "behind"
+            and $replica->local_revision > 0
+            and ( $replica->remote_revision - $replica->local_revision >= 10
+                or ( time - $replica->cache->{remote_date} >= 5 * 60 ) )
             )
         {
             $replica->sync;



More information about the Bps-public-commit mailing list