Flatten comm-central directories
Categories
(MailNews Core :: Build Config, defect)
Tracking
(thunderbird_esr78 fixed, thunderbird80 wontfix)
People
(Reporter: jcranmer, Assigned: jcranmer)
References
Details
Attachments
(9 files, 1 obsolete file)
|
19.38 KB,
patch
|
rkent
:
review-
|
Details | Diff | Splinter Review |
|
16.12 KB,
patch
|
rkent
:
review+
|
Details | Diff | Splinter Review |
|
20.23 KB,
patch
|
rkent
:
review+
|
Details | Diff | Splinter Review |
|
47 bytes,
text/x-phabricator-request
|
wsmwk
:
approval-comm-esr78+
|
Details | Review |
|
47 bytes,
text/x-phabricator-request
|
wsmwk
:
approval-comm-esr78+
|
Details | Review |
|
47 bytes,
text/x-phabricator-request
|
wsmwk
:
approval-comm-esr78+
|
Details | Review |
|
47 bytes,
text/x-phabricator-request
|
wsmwk
:
approval-comm-esr78+
|
Details | Review |
|
47 bytes,
text/x-phabricator-request
|
wsmwk
:
approval-comm-esr78+
|
Details | Review |
|
47 bytes,
text/x-phabricator-request
|
wsmwk
:
approval-comm-esr78+
|
Details | Review |
| Assignee | ||
Comment 3•12 years ago
|
||
| Assignee | ||
Comment 4•9 years ago
|
||
| Assignee | ||
Comment 5•9 years ago
|
||
| Assignee | ||
Comment 6•9 years ago
|
||
Comment 8•9 years ago
|
||
| Assignee | ||
Comment 9•9 years ago
|
||
| Assignee | ||
Comment 10•9 years ago
|
||
Comment 11•9 years ago
|
||
Comment 12•9 years ago
|
||
Comment 13•9 years ago
|
||
Comment 14•9 years ago
|
||
| Assignee | ||
Comment 15•9 years ago
|
||
| Assignee | ||
Comment 16•5 years ago
|
||
| Assignee | ||
Comment 17•5 years ago
|
||
Depends on D85670
| Assignee | ||
Comment 18•5 years ago
|
||
Since CMS code is only used via the S/MIME code, this is where it ought to live.
Depends on D85671
| Assignee | ||
Comment 19•5 years ago
|
||
Depends on D85672
| Assignee | ||
Comment 20•5 years ago
|
||
Depends on D85673
| Assignee | ||
Comment 21•5 years ago
|
||
Depends on D85674
Comment 22•5 years ago
|
||
Pushed by Pidgeot18@gmail.com:
https://hg.mozilla.org/comm-central/rev/dc216c691deb
part 1: Move mork code from db/mork to mailnews/db/mork. r=mkmelin
https://hg.mozilla.org/comm-central/rev/05d8dba40703
part 2: Move mailnews/base/search to mailnews/search. r=mkmelin
https://hg.mozilla.org/comm-central/rev/e12a85678599
part 3: Move the CMS code to the rest of the S/MIME code. r=kaie
https://hg.mozilla.org/comm-central/rev/29a2565ddcb3
part 4: Flatten mailnews/extensions/* directories. r=mkmelin
https://hg.mozilla.org/comm-central/rev/34e323c279b1
part 5: Flatten mailnews/import/* into a single directory. r=mkmelin
https://hg.mozilla.org/comm-central/rev/308f24db1bf3
part 6: Move mailnews/base/util to mailnews/base/src. r=mkmelin
Comment 23•5 years ago
|
||
Was this change done without any consideration whatsoever for history? Why were these files copied rather than using hg rename? Why weren't these changesets excluded from hg history, a la whitespace change best practice.
This should be backed out and done properly, assuming it even has legitimate value to begin with. Yet another example of ill considered rubber stamping.
| Assignee | ||
Comment 24•5 years ago
|
||
(In reply to alta88 from comment #23)
Was this change done without any consideration whatsoever for history? Why were these files copied rather than using hg rename?
hg rename is actually implemented as a copy-and-delete under the hood. I ran hg mv for all of these files.
Well, not all of them. One set of files was an hg cp followed by hg rm. If you can't figure out which set of files that was from the changesets, then that should dispel your accusations. (Spoiler alert: I've already checked, and there is no observable difference for this set of files).
Updated•5 years ago
|
Comment 25•5 years ago
|
||
Yeah, e.g. the mork patch uses 'rename' commands, but the history still seems to be lost. hg log mdb.h shows jcranmer as the initial author.
| Assignee | ||
Comment 26•5 years ago
|
||
(In reply to :aceman from comment #25)
Yeah, e.g. the mork patch uses 'rename' commands, but the history still seems to be lost. hg log mdb.h shows jcranmer as the initial author.
Use hg log --follow instead; for some reason, mercurial does not follow moves by default.
Comment 27•5 years ago
|
||
Ok, that seems to work, thanks.
Comment 28•5 years ago
|
||
I think I was a really BAD idea to move stuff around and the beginning of the ESR cycle. There will be uplift problems with no end now(*). Those global changes should be done at the end of an ESR cycle.
You should reconsider: status-thunderbird_esr78: --- → wontfix. Won't hurt to do the same shuffling on the ESR branch like we did for linting and clang-format on other occasions.
(*) Starting here in bug 1653690.
Comment 29•5 years ago
|
||
I am sorry to say this, it would have been very great if this change had been announced well in advance.
Maybe I missed reading such a post. But that is also my point.
Change of this magnitude ought to be announced maybe weekly for about 3-4 weeks in advance.
I recall that source formatting done by Jorg was announced way before and it was notified a few times so that everybody was aware of it coming.
Just my idea. YMMV.
Comment 30•5 years ago
|
||
Yeah maybe we should take it for esr a bit later.
(In reply to ISHIKAWA, Chiaki from comment #29)
Change of this magnitude ought to be announced maybe weekly for about 3-4 weeks in advance.
How would that have changed anything? Changes like these require adapting patches at the time they happen anyway, not before.
Comment 31•5 years ago
|
||
In reply to Magnus Melin [:mkmelin] from comment #30)
Yeah maybe we should take it for esr a bit later.
(In reply to ISHIKAWA, Chiaki from comment #29)
Change of this magnitude ought to be announced maybe weekly for about 3-4 weeks in advance.
How would that have changed anything? Changes like these require adapting patches at the time they happen anyway, not before.
In the case of Jorg's reformatting change, I was ready to tackle the major surgery because I had noticed his posts.
I had created the duplicate of the local source tree as well as the local patches and even figure out how to do the copying, reformatting, etc. in advance. (Algorithmically, I found it better to create the final changed tree as a whole first and work backward. Well, I forget the details now, but it worked. Also during verification, I found a couple of copy&paste mistakes done before and fixing these copy&paste errors eliminated a strange mozmill test error I noticed with my local patches. Great.)
The readiness and awareness counted. I was confident of what I was doing.
This time, I was not prepared and so after updating the C-C tree and while I tried to apply the local patches, I trashed the first few patches , thinking, OK, this patch and that patch were already applied (which was the case) in the new C-C tree, only when the subsequent patch failed and when I investigated the file in question was nowhere to be found, I got really confused and I needed to send an inquiry to the mailing list, to which Jorg answered with the pointer to this bugzilla entry.
During the few hours I spent trying to figure out what went wrong, I felt very uneasy since I thought I had trashed my local tree permanently due to some errors, and I eventually gave up to see if the HG commands failed [which is very unlikely these days]. (I checked searchfox and thought it had NOT reflected the patch yet and so it showed the missing file. (?) Now I am not sure. Maybe it showed the file but under the different new directory. But I was so confused then and not noticed it, if so, and I know searchfox database can be a day or two old sometimes.)
At least, I could have avoided this very uneasy few hours of analyzing a non-bug.
That is my perspective.
Anyway, if I had known, I would have been ready with the duplicate source tree and duplicate local patch queue to cope with the changes in advance.
And I would have probably figured out the changes needed and created a shell script to change the paths in the local mqueue patches to automagically update the patches to cope with the newly directory structure.
Yeah, I am sorry to admit that I am still using MQ, which I understand is not recommended these days.
But some shell scripts I created for local development are tightly coupled with MQ and not easy to get away with it yet
Anyway, I would change the patches this coming weekend hopefully.
TIA
Comment 32•5 years ago
|
||
Sorry if it caused problems. FWIW, just rebasing your patch queue in hg should have worked automatically - though as you say, mq can't do that. I think to fix up your patch queue you could back up to the revision before this landed, commit all the mq patches, then rebase and (if you want) pull qimport them all away again.
Comment 33•5 years ago
|
||
(In reply to Magnus Melin [:mkmelin] from comment #32)
Sorry if it caused problems. FWIW, just rebasing your patch queue in hg should have worked automatically - though as you say, mq can't do that. I think to fix up your patch queue you could back up to the revision before this landed, commit all the mq patches, then rebase and (if you want) pull qimport them all away again.
Thank you for your tips. I should get more familiar with HG commands.
(Somehow I got acquainted with git a bit more easily. Don't know why. Maybe a slight difference in mental model? But I can't put my fingers on it.)
Comment 34•5 years ago
|
||
Comment on attachment 9167516 [details]
Bug 875059, part 1: Move mork code from db/mork to mailnews/db/mork. r?mkmelin
[Approval Request Comment]
User impact if declined: will have rebasing problems for most c++ fixes we take during 78
Risk to taking this patch (and alternatives if risky): Safe, just moving code around.
Comment 35•5 years ago
|
||
(For all the changesets)
Comment 36•5 years ago
|
||
Comment on attachment 9167521 [details]
Bug 875059, part 5: Flatten mailnews/import/* into a single directory. r?mkmelin
[Triage Comment]
Approved for esr78
Comment 37•5 years ago
|
||
Comment on attachment 9167516 [details]
Bug 875059, part 1: Move mork code from db/mork to mailnews/db/mork. r?mkmelin
[Triage Comment]
Approved for esr78
Comment 38•5 years ago
|
||
Comment on attachment 9167517 [details]
Bug 875059, part 2: Move mailnews/base/search to mailnews/search. r?mkmelin
[Triage Comment]
Approved for esr78
Comment 39•5 years ago
|
||
Comment on attachment 9167518 [details]
Bug 875059, part 3: Move the CMS code to the rest of the S/MIME code. r?kaie
[Triage Comment]
Approved for esr78
Comment 40•5 years ago
|
||
Comment on attachment 9167520 [details]
Bug 875059, part 4: Flatten mailnews/extensions/* directories. r?mkmelin
[Triage Comment]
Approved for esr78
Comment 41•5 years ago
|
||
Comment on attachment 9167522 [details]
Bug 875059, part 6: Move mailnews/base/util to mailnews/base/src. r?mkmelin
[Triage Comment]
Approved for esr78
Comment 42•5 years ago
|
||
| bugherder uplift | ||
Thunderbird 78.2.2:
https://hg.mozilla.org/releases/comm-esr78/rev/9e42b6a85af0
https://hg.mozilla.org/releases/comm-esr78/rev/d2c3b003962e
https://hg.mozilla.org/releases/comm-esr78/rev/ea24adc1f34b
https://hg.mozilla.org/releases/comm-esr78/rev/b6db1fd48f59
https://hg.mozilla.org/releases/comm-esr78/rev/ec9fdf84f987
https://hg.mozilla.org/releases/comm-esr78/rev/c9cd765ab75b
Description
•