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

alexmv at bestpractical.com alexmv at bestpractical.com
Tue Aug 5 13:24:06 EDT 2008


Author: alexmv
Date: Tue Aug  5 13:24:05 2008
New Revision: 14790

Modified:
   Pushmi/trunk/   (props changed)
   Pushmi/trunk/lib/Pushmi/Command.pm
   Pushmi/trunk/lib/Pushmi/Config.pm

Log:
 r35327 at kohr-ah:  chmrr | 2008-08-05 13:22:23 -0400
  --config wont't work, as SVK jumps the gun and sets up Log4perl at compile time


Modified: Pushmi/trunk/lib/Pushmi/Command.pm
==============================================================================
--- Pushmi/trunk/lib/Pushmi/Command.pm	(original)
+++ Pushmi/trunk/lib/Pushmi/Command.pm	Tue Aug  5 13:24:05 2008
@@ -3,8 +3,8 @@
 use warnings;
 use base qw(App::CLI App::CLI::Command);
 
-use Pushmi::Mirror;
 use Pushmi::Config;
+use Pushmi::Mirror;
 use Path::Class;
 use SVN::Mirror;
 use SVK::Config;
@@ -34,7 +34,6 @@
 sub options {
     return (
         "silent!"     => "silent",
-        "config=s"    => "config",
     );
 }
 
@@ -57,9 +56,6 @@
         close STDIN;
     }
 
-    $ENV{"PUSHMI_CONFIG"} = $self->{config}
-        if defined $self->{config};
-
     # compat
     for ($self->subcommands) {
         if (delete $self->{$_}) {

Modified: Pushmi/trunk/lib/Pushmi/Config.pm
==============================================================================
--- Pushmi/trunk/lib/Pushmi/Config.pm	(original)
+++ Pushmi/trunk/lib/Pushmi/Config.pm	Tue Aug  5 13:24:05 2008
@@ -40,4 +40,6 @@
 
 }
 
+BEGIN {Pushmi::Config->logger} # We do this to make sure we init our logger before SVK does
+
 1;



More information about the Bps-public-commit mailing list