-
-
Notifications
You must be signed in to change notification settings - Fork 609
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix Issue 15272 - [2.069-rc2,inline] nothing written to output when -… #5253
Conversation
|
Regression fixes always against the stable branch please. |
| e2->E1 = eb; | ||
| e2->E2 = e; | ||
| e2->E1 = e; | ||
| e2->E2 = eb; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How does switching the assignment order help?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So the two leaves are executed in the same order as in the OPpair expression node.
|
Evidently, this is not the answer, either: |
fa21f48 to
e98a9e7
Compare
|
Hah! Turns out that safety0ff.bugz was on the right track, but there was yet another bug that needed to be fixed to get all this to work. |
e98a9e7 to
aaea5aa
Compare
|
Added test cases. |
|
I've tried setting it against another branch, and have failed. Besides, I still don't understand what's wrong with cherry-pick. I use it all the time to put improvements into the D1 branch. And in any case, PRs on the release branch have to be cherry-picked back into HEAD anyway. So I simply don't understand the problem. |
|
test15272 passes without the fix, too. |
|
The test failing relies on the contents of an uninitialized variable, hence the weird constructs in the bugzilla report. There's not really a reliable way to make it fail - however, test15272 should always pass. |
This non-specific complaining isn't helping anyone.
Many things. This has been discussed many, many times. There is no need to pretend this is a new topic or problem. |
|
What was never answered is why merging commits from stable to master is good but merging commits from master to stable is bad. What's the difference? |
Merging is not the same as cherry-picking. The question to ask here is what the advantage of merging is over cherry-picking. With cherry-picking, the commit is duplicated (essentially copied and pasted) into a new branch, which causes two distinct commits with the same set of changes to exist in D's history. This causes confusion and problems for tools such as Digger. We can't merge master into stable because aside from bringing in the regression fix, it would also pull in all unstable commits made on the master branch that don't belong in stable. As such, the only options are to either cherry-pick (which has the problems mentioned above) or to make the pull request against the stable branch in the first place. Hope this helps! Happy to clarify if something else is not clear. |
|
Thanks for the explanation. So what happens if a fix is made to stable only, and is not meant for master? Also, why not fix Digger? |
I thought my git fork contained everything. |
It can be undone as part of the stable-to-master merge PR. But has such a situation arisen before?
It is a complicated problem. Digger would need to search D's history for similar commits, and it would need to make assumptions about the structure of the repository's history. But this isn't the only issue caused by cherry-picking.
That's strange. Do you see |
It will. |
I see: |
|
Ah, |
|
|
OK, this will set up the |
Stable is not in the dropdown list. |
|
There is no "base fork:" nor a "head fork:" or "base: master" on mine. There's only "Branch: master". |
|
Oh, that's on a different page. Do you see a button like this on https://github.com/WalterBright/dmd ? If so, click the green button and you'll get to the page in the above screenshots. If not, select your pull request's branch ( (BTW, this is the same as how one would normally do a PR against master. I guess you've been using some other way?) |
|
main reasons to avoid cherry-picking:
We'd still merge it into master and revert/change the fix then. See #5258 for the rebased PR. |
|
The trouble seems to be that my fork does not contain 'stable'. I do not know how to make it do that. |
|
|
Your fork doesn't need to have a |
|
Because github wouldn't list stable as something I could put a PR against. As described upthread. |
|
Thanks, @yebblies |
|
I think you're looking in the wrong place. Look at the screenshots I posted. Can you post a screenshot yourself? |
|
My dmd fork doesn't have a |
Alien mind control. |
|
Oh, OK. Carry on then :) On Thu, Nov 5, 2015 at 4:40 AM, Daniel Murphy notifications@github.com
|
I removed it. But there was one dropdown, not 4, and it is as I said. No |
|
Then you're on the wrong page. Read my comments above. |




…inline is set
https://issues.dlang.org/show_bug.cgi?id=15272
Not sure at the moment how to create a test case for it.