? .patch
? drush.sh
? fast.patch
? timing.patch
? tmp.patch
? tmp.patch.patch
? updatedb.patch
? commands/.patch
? commands/pm/.patch
Index: commands/core/core.drush.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/drush/commands/core/core.drush.inc,v
retrieving revision 1.23
diff -u -F^f -p -r1.23 core.drush.inc
--- commands/core/core.drush.inc	3 May 2009 03:45:34 -0000	1.23
+++ commands/core/core.drush.inc	5 May 2009 04:06:11 -0000
@@ -126,7 +126,9 @@ function core_help() {
   
   if (empty($commands)) {
     drush_show_help(array('help'));
-    $phases = _drush_bootstrap_phases(); 
+    $phases = _drush_bootstrap_phases();
+    // We only want to bootstrap up to DRUSH_BOOTSTRAP_DRUPAL_CONFIGURATION.
+    $phases = array_slice($phases, 0, DRUSH_BOOTSTRAP_DRUPAL_CONFIGURATION+1);
     drush_print(dt('Commands: '));
 
     $printed_rows = array();
@@ -150,7 +152,7 @@ function core_help() {
         
         $rows = array();
         foreach($commands as $key => $command) {
-          if (!array_key_exists($key, $printed_rows) && empty($commands[$key]['bootstrap_errors'])) {
+          if (!array_key_exists($key, $printed_rows)) {
             $rows[$key] = array(sprintf("%-20s", $key), $commands[$key]['description']);
           }
         }
Index: includes/command.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/drush/includes/command.inc,v
retrieving revision 1.28
diff -u -F^f -p -r1.28 command.inc
--- includes/command.inc	3 May 2009 03:45:35 -0000	1.28
+++ includes/command.inc	5 May 2009 04:06:11 -0000
@@ -383,6 +383,13 @@ function _drush_find_commandfiles($phase
         $searchpath[] = $_SERVER['HOME'] . '/.drush';
       }
       break;
+    case DRUSH_BOOTSTRAP_DRUPAL_SITE:
+      // Add all module paths, even disabled modules. Prefer speed over accuracy.
+      $searchpath[] = 'sites/all/modules';
+      $searchpath[] = conf_path() . '/modules';
+      // Too early for variable_get('install_profile', 'default'); Just use default.
+      $searchpath[] = "profiles/default/modules";
+      break;
     case DRUSH_BOOTSTRAP_DRUPAL_FULL :
      // Add enabled module paths. Since we are bootstrapped,
      // we can use the Drupal API.
Index: includes/environment.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/drush/includes/environment.inc,v
retrieving revision 1.24
diff -u -F^f -p -r1.24 environment.inc
--- includes/environment.inc	3 May 2009 03:45:35 -0000	1.24
+++ includes/environment.inc	5 May 2009 04:06:11 -0000
@@ -454,9 +454,13 @@ function _drush_bootstrap_drupal_site() 
   $drush_uri = drush_set_context('DRUSH_URI', drush_bootstrap_value('drush_uri')); 
   $site = drush_set_context('DRUSH_DRUPAL_SITE', drush_bootstrap_value('site'));
   $conf_path = drush_set_context('DRUSH_DRUPAL_SITE_ROOT', drush_bootstrap_value('conf_path'));
+  
+  // Find any command files that are available during this bootstrap phase.
+  _drush_find_commandfiles(DRUSH_BOOTSTRAP_DRUPAL_SITE);
 
   drush_log(dt("Initialized Drupal site !site at !site_root", array('!site' => $site, '!site_root' => $conf_path)));
   drush_load_config('site');
+  
 }
 
 /**
