Hi,
If you click in the UI on a overriden feature you have the option to revert only some components and not the whole feature.
I expected that you also could do this if you use the drush command, which is not the case. I would therefore propose to introduce another parameter (--components) for 'drush feature-revert'.

Comments

mpotter’s picture

Status: Active » Closed (works as designed)

'drush fr' should be prompting for each component, so just say 'y' to the ones you want to revert.

leschekfm’s picture

Status: Closed (works as designed) » Active

Ok I think I must clarify my use case:
We are using scripts to revert our features, so interactively deciding inside the prompt which components to revert is not possible.

blazindrop’s picture

+1

This would be really helpful and I imagine it would be a simple change since the command line already prompts you to revert each component. I'll try to whip up a patch but could take me a few days.

blazindrop’s picture

Going through my watched issues, I know we can revert specific components now with something like "drush fr feature.component". Think this can be closed?

leschekfm’s picture

I haven't tested this as I'm doing no drupal development at the moment, but if this is possible, this issue can be closed.

mpotter’s picture

Status: Active » Closed (works as designed)
batigolix’s picture

Issue summary: View changes

For completeness: you can revert just one feature component as explained in comment #4

drush fr myfeature.field_base --y
drush fr myfeature.field_instance --y

See the help text:

drush help fr