Hey Drush team!
Briefly, briefly only: Since when doesn't Drush delete files & folders anymore? E.g. I have realised that my test file 'testfile.txt' in module 'Foo' doesn't get removed by Drush's core command 'dl' [anymore]!
This behaviour can cause severe problems -- in my case it left an outdated inc-file in the module folder 'mimemail' with the result of a complete site crash.
I seem to have not payed attention enough before, but I am sure that I used to think Drush deletes the whole module folder before it downloads/updates!?!?
Thanks, team! I am referring, btw, to the version 'All-versions-5.x-dev (2011-Oct-19)'.
Comments
Comment #1
greg.1.anderson commentedHmmm....
This certainly seems wrong to me. I cannot answer the question (when did this happen), but I don't think it happened on purpose. I tried the same test on 4.x-dev, and the spurious file was correctly removed.
Comment #2
greg.1.anderson commentedgit bisect to the rescue?
Comment #3
Blooniverse commentedGreg, are you addressing me? :)
Comment #4
greg.1.anderson commented@the_phi: I was addressing any motivated individual who might pick up this issue before I had a chance to get to it. Owen began a big rewrite of the pm code yesterday, so I'm assigning this to him. I'll bet that his new code will correctly remove old files during drush dl.
Comment #5
jonhattanIt was my fail:
http://drupalcode.org/project/drush.git/commitdiff/dc06cc206a8b96568221d...
Fixed in: http://drupalcode.org/project/drush.git/commit/f3fd8bd
Comment #6
jonhattanto be backported if #996420: make pm-download preserve vcs files gets in.
Comment #7
msonnabaum commentedClosing since #996420 won't be backported.
Comment #8.0
(not verified) commentedNicer formatting.