I'm tracking 4 things in my test site: 3 variables and 1 content type. That's what shows in the Tracking tab. But when I go to the console and do: "drush cexp --all" it exports all the files that are not being tracked.

Is this expected?

The help command reads:
drush cexp --all Export all tracked components

Comments

milos.kroulik’s picture

Title: drush cexp --all exports all files » drush cexp --all exports all files (including untracked)
milesw’s picture

Same issue here.

milesw’s picture

Status: Active » Needs review
StatusFileSize
new2.09 KB

Here is a patch to allow only tracked config to be exported.

There are now two different flags, --all and --all-tracked.

Status: Needs review » Needs work

The last submitted patch, 3: configuration-2386017-3-export-tracked-only.patch, failed testing.

milesw’s picture

I don't think #3 is working properly. It's touching only tracked configuration, but doesn't seem to be capturing changes from the ActiveStore.

cthos’s picture

Version: 7.x-2.0-alpha1 » 7.x-2.x-dev
Status: Needs work » Needs review

This seems to be working fine for me, and applied cleanly against -dev.

Edit: I take that back, it doesn't appear to be writing a new hash to tracked.inc, which is causing the cgt command to report stuff is being overridden. --start-tracking seems to be the only way to tell it to write to the tracking file?