I have written a script on git hook that extracts code from branch, inserts in environment and runs some drush commands: clear cache, import data and revert all features. Last one works incorrect.

<strong>drush features-revert-all --force --verbose -y</strong>
remote: The following modules will be reverted: myfeature_config, myfeature_projects, myfeature_objects, myfeature_page_about, myfeature_page_contacts, myfeature_page_home, myfeature_services, awd_features
remote: Do you really want to continue? (y/n): y
remote: WD features: Reverting myfeature_config / menu_custom.                    [notice]
remote: WD features: Revert completed for myfeature_config / menu_custom.         [notice]
remote: Reverted myfeature_config.menu_custom.                                        [ok]
remote: WD features: Reverting myfeature_config / variable.                       [notice]
remote: WD features: Revert completed for myfeature_config / variable.            [notice]
remote: Reverted myfeature_config.variable.                                           [ok]
remote: WD features: Reverting myfeature_projects / field_base.                   [notice]
remote: WD features: Revert completed for myfeature_projects / field_base.        [notice]
remote: Reverted myfeature_projects.field_base.                                       [ok]
remote: WD features: Reverting myfeature_projects / field_instance.               [notice]
remote: WD features: Revert completed for myfeature_projects / field_instance.    [notice]
remote: Reverted myfeature_projects.field_instance.                                   [ok]
remote: WD features: Reverting myfeature_projects / menu_links.                   [notice]
remote: WD features: Revert completed for myfeature_projects / menu_links.        [notice]
remote: Reverted myfeature_projects.menu_links.                                       [ok]
remote: WD features: Reverting myfeature_projects / node.                         [notice]
remote: WD features: Revert completed for myfeature_projects / node.              [notice]
remote: Reverted myfeature_projects.node.                                             [ok]
remote: WD features: Reverting myfeature_projects / taxonomy.                     [notice]
remote: WD features: Revert completed for myfeature_projects / taxonomy.          [notice]
remote: Reverted myfeature_projects.taxonomy.                                         [ok]
remote: WD features: Reverting myfeature_projects / variable.                     [notice]
remote: WD features: Revert completed for myfeature_projects / variable.          [notice]
remote: Reverted myfeature_projects.variable.                                         [ok]
remote: WD features: Reverting myfeature_projects / views_view.                   [notice]
remote: WD features: Revert completed for myfeature_projects / views_view.        [notice]
remote: Reverted myfeature_projects.views_view.                                       [ok]
remote: WD features: Reverting myfeature_objects / field_base.                    [notice]
remote: WD features: Revert completed for myfeature_objects / field_base.         [notice]
remote: Reverted myfeature_objects.field_base.                                        [ok]
remote: WD features: Reverting myfeature_objects / field_instance.                [notice]
remote: WD features: Revert completed for myfeature_objects / field_instance.     [notice]
remote: Reverted myfeature_objects.field_instance.                                    [ok]
remote: WD features: Reverting myfeature_objects / menu_links.                    [notice]
remote: WD features: Revert completed for myfeature_objects / menu_links.         [notice]
remote: Reverted myfeature_objects.menu_links.                                        [ok]
remote: WD features: Reverting myfeature_objects / node.                          [notice]
remote: WD features: Revert completed for myfeature_objects / node.               [notice]
remote: Reverted myfeature_objects.node.                                              [ok]
remote: WD features: Reverting myfeature_objects / taxonomy.                      [notice]
remote: WD features: Revert completed for myfeature_objects / taxonomy.           [notice]
remote: Reverted myfeature_objects.taxonomy.                                          [ok]
remote: WD features: Reverting myfeature_objects / variable.                      [notice]
remote: WD features: Revert completed for myfeature_objects / variable.           [notice]
remote: Reverted myfeature_objects.variable.                                          [ok]
remote: WD features: Reverting myfeature_objects / views_view.                    [notice]
remote: WD features: Revert completed for myfeature_objects / views_view.         [notice]
remote: Reverted myfeature_objects.views_view.                                        [ok]
remote: WD features: Reverting myfeature_page_about / menu_links.                 [notice]
remote: WD features: Revert completed for myfeature_page_about / menu_links.      [notice]
remote: Reverted myfeature_page_about.menu_links.                                     [ok]
remote: WD features: Reverting myfeature_page_about / page_manager_pages.         [notice]
remote: WD features: Revert completed for myfeature_page_about /                  [notice]
remote: page_manager_pages.
remote: Reverted myfeature_page_about.page_manager_pages.                             [ok]
remote: WD features: Reverting myfeature_page_contacts / menu_links.              [notice]
remote: WD features: Revert completed for myfeature_page_contacts / menu_links.   [notice]
remote: Reverted myfeature_page_contacts.menu_links.                                  [ok]
remote: WD features: Reverting myfeature_page_contacts / page_manager_pages.      [notice]
remote: WD features: Revert completed for myfeature_page_contacts /               [notice]
remote: page_manager_pages.
remote: Reverted myfeature_page_contacts.page_manager_pages.                          [ok]
remote: WD features: Reverting myfeature_page_home / menu_links.                  [notice]
remote: WD features: Revert completed for myfeature_page_home / menu_links.       [notice]
remote: Reverted myfeature_page_home.menu_links.                                      [ok]
remote: WD features: Reverting myfeature_page_home / page_manager_pages.          [notice]
remote: WD features: Revert completed for myfeature_page_home /                   [notice]
remote: page_manager_pages.
remote: Reverted myfeature_page_home.page_manager_pages.                              [ok]
remote: WD features: Reverting myfeature_services / field_instance.               [notice]
remote: WD features: Revert completed for myfeature_services / field_instance.    [notice]
remote: Reverted myfeature_services.field_instance.                                   [ok]
remote: WD features: Reverting myfeature_services / menu_links.                   [notice]
remote: WD features: Revert completed for myfeature_services / menu_links.        [notice]
remote: Reverted myfeature_services.menu_links.                                       [ok]
remote: WD features: Reverting myfeature_services / node.                         [notice]
remote: WD features: Revert completed for myfeature_services / node.              [notice]
remote: Reverted myfeature_services.node.                                             [ok]
remote: WD features: Reverting myfeature_services / variable.                     [notice]
remote: WD features: Revert completed for myfeature_services / variable.          [notice]
remote: Reverted myfeature_services.variable.                                         [ok]
remote: WD features: Reverting myfeature_services / views_view.                   [notice]
remote: WD features: Revert completed for myfeature_services / views_view.        [notice]
remote: Reverted myfeature_services.views_view.                                       [ok]
remote: Current state already matches defaults, aborting.                           [ok]
remote: Command dispatch complete                                               [notice]
remote: Command dispatch complete                                               [notice]
remote: Initialized Drupal 7.23 root directory at                               [notice]
remote: /correct/path/to/drupal/root/
remote: Initialized Drupal site default at sites/default                        [notice]
remote: 'all' cache was cleared in self                                        [success]
remote: Command dispatch complete                                               [notice]
remote: Pushed variables from code to the database.                            [success]
remote: The following modules will be reverted: myfeature_projects, myfeature_objects, myfeature_page_about, myfeature_services
remote: Do you really want to continue? (y/n): y
remote: Reverted myfeature_projects.menu_links.                                       [ok]
remote: Reverted myfeature_objects.menu_links.                                        [ok]
remote: Reverted myfeature_page_about.menu_links.                                     [ok]
remote: Reverted myfeature_services.menu_links.                                       [ok]
remote: Clearing cache...
remote: 'all' cache was cleared in self                                        [success]
<strong>drush features-list</strong>
remote:  Name                     Feature                 Status    Version  State      
remote:  AWD Features             awd_features            Enabled                       
remote:  Features Tests           features_test           Disabled  7.x-2.0             
remote:                                                             -rc5                
remote:  myfeature config           myfeature_config          Enabled                       
remote:  myfeature Objects          myfeature_objects         Enabled            Overridden 
remote:  myfeature Page About       myfeature_page_about      Enabled            Overridden 
remote:  myfeature Page Contacts    myfeature_page_contacts   Enabled                       
remote:  myfeature Page Home        myfeature_page_home       Enabled                       
remote:  myfeature Projects         myfeature_projects        Enabled            Overridden 
remote:  myfeature Services         myfeature_services        Enabled            Overridden 
remote:  migrate_example_basebal  migrate_example_baseba  Disabled  7.x-2.5             
remote:  l                        ll                                                    
remote:  Migrate example -        migrate_example_oracle  Disabled  7.x-2.5             
remote:  Oracle
remote: drupal updated

And when I run manually in bash 'drush fra' - all works. The same through GUI.

Comments

hefox’s picture

Status: Active » Postponed (maintainer needs more info)

What part of it doesn't work?

kenorb’s picture

Category: Bug report » Support request
Status: Postponed (maintainer needs more info) » Closed (duplicate)
Related issues: +#744450: Why would a feature not revert?