[Bps-public-commit] r14645 - Pushmi/trunk/lib/Pushmi/Command

clkao at bestpractical.com clkao at bestpractical.com
Wed Jul 30 14:40:29 EDT 2008


Author: clkao
Date: Wed Jul 30 14:40:26 2008
New Revision: 14645

Modified:
   Pushmi/trunk/lib/Pushmi/Command/Sync.pm

Log:
use new svk::mirror bootstrap api.

Modified: Pushmi/trunk/lib/Pushmi/Command/Sync.pm
==============================================================================
--- Pushmi/trunk/lib/Pushmi/Command/Sync.pm	(original)
+++ Pushmi/trunk/lib/Pushmi/Command/Sync.pm	Wed Jul 30 14:40:26 2008
@@ -8,7 +8,8 @@
 my $logger = Pushmi::Config->logger('pushmi.sync');
 
 sub options {
-    ('nowait' => 'nowait');
+    ('nowait' => 'nowait',
+     'bootstrap=s' => 'bootstrap');
 }
 
 sub run_with_auth {
@@ -21,6 +22,12 @@
         return;
     }
 
+    if ($self->{bootstrap}) {
+        require SVK::Notify; # remove me later
+        $pushmi->master->bootstrap($self->{bootstrap});
+        return;
+    }
+
     my ($first, $last);
     eval {
     $pushmi->master->mirror_changesets(undef,



More information about the Bps-public-commit mailing list