Automatically convert MODXXX -> MOD#7729
Conversation
wilzbach
commented
Jan 16, 2018
|
Thanks for your pull request, @wilzbach! Bugzilla referencesYour PR doesn't reference any Bugzilla issue. If your PR contains non-trivial changes, please reference a Bugzilla issue or create a manual changelog. |
|
You also need to update: Lines 116 to 125 in 254c963 |
|
Can we slow down on this stuff? All this refactoring means I spend many hours rebasing and I presume everyone else, too. |
|
@WalterBright On the contrary, I think we should hurry up and finish all of them and be done with this particular nuisance once and for all. As you can see here, most of the work is already done: If we complete this task quickly it means that most PRs will have to be rebased only once, and if we spread the work slowly over time it means that many PRs will need to be rebased multiple times. |
Where do you spend it? Are you referring to #6907 (comment)? I rebased this PR within five minutes after you posting there. Please don't hesitate to ping me if you run into. I'm more than happy to help out with rebasing any PR.
We actively go through the PR queue and rebase or recreate old PRs that have value. Very often, however, it's:
That was exactly my motivation for finishing this up. |
```bash
replacements=(
"MODconst const_"
"MODimmutable immutable_"
"MODshared shared_"
"MODwild wild"
"MODwildconst wildconst"
"MODmutable mutable"
)
shopt -s globstar
for r in "${replacements[@]}" ; do
w=($r)
sed "s/${w[0]}/MODFlags.${w[1]}/g" -i **/*.d
done
```
5fc9e8e to
5715702
Compare
There were a number of changes, such as code moving from one file to another, layered in with a few other commits that changed things in the changed sections, meaning the rebase needed a lot of manual work. They all failed the autotester, meaning I needed to track down if it was a rebase mistake or something else, all of which takes time as the autotester has a largish turnaround time. |
FYI: dlang-bot marks PRs needing a rebase with "needs rebase". Whenever I have time, I browse the first page and see to it that everything is nicely green and rebased. Now that Travis has been replaced by SemaphoreCI we should start seeing green a lot more frequent. I don't actively look at the older PRs as they can be rebased once they are actively approved, but please let me know if you have old PRs that need rebasing. My rebasing pipeline is pretty optimized ;-) Also I'm pretty sure that I'm not the only one who would gladly help you with rebasing if that means less vetos on refactorings in the frontend.
Yes I'm done with this enum conversion series. Anything else that we should do in this refactoring phase? |
There's a whole bunch of symbols that I would like to rename for clarity and following the D style guide. But that might be a different phase. |
@WalterBright I do hope that you do some form of testing locally before pushing the code to let the autotester run. |