Closed (fixed)
Project:
Features
Version:
7.x-2.2
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
9 Sep 2014 at 20:27 UTC
Updated:
23 Jun 2016 at 14:24 UTC
Jump to comment: Most recent
Here's the problem I am trying to solve:
Question: what should Bob do?
The only thing I can think of is to have Bob export and commit before pulling, but I'm not crazy about that because it breaks his ability to fast-forward Alice's commit.
Comments
Comment #1
ropic commentedSame problem here
Comment #2
mpotter commentedIn the Drupal 8 version of Features, the features-revert command has a syntax to specify a single component to revert. Also, in the Features UI if you click the "Changes" next to the feature you can then check a single checkbox for the stuff you want to import so you can get Alice's changes without overwriting your own.
In general we have always recommended that you handle your features in a modular way so that you don't have multiple devs working on the same feature at the same time. Only the D8 version of Features has added stuff to make this easier.
In D7, you should be able to do the following:
1) Alice exports her feature changes and commits/pushes the code.
2) Bob makes his changes and exports his feature changes (drush fu...)
3) Now Bob pulls the code from Alice and merges her changes with his
4) Bob runs feature-revert to import the new code containing both his and Alice's changes
5) Bob can commit/push the merged code
So the problem is in your step #2 you are pulling/merging before Bob has a chance to export his changes. You need to export before you pull/merge.