RE: [PHP-CVS] com php-src: update NEWS: NEWS
| From: | Anatol Belski | Date: | Fri, 23 Sep 2016 18:27:17 +0000 |
| Subject: | RE: [PHP-CVS] com php-src: update NEWS: NEWS | ||
| References: | 1 2 3 4 5 6 7 8 9 | Groups: | php.cvs |
| Request: | Send a blank email to php-cvs+get-94664@lists.php.net to get a copy of this message | ||
> -----Original Message-----
> From: Adam Baratz [mailto:adambaratz@php.net]
> Sent: Friday, September 23, 2016 7:37 PM
> To: Anatol Belski <anatol.php@belski.net>
> Cc: Christoph M. Becker <cmbecker69@gmx.de>; php-cvs@lists.php.net
> Subject: Re: [PHP-CVS] com php-src: update NEWS: NEWS
>
> >
> > ACK. So all the 7.0 items are relevant for 7.1.
> >
>
> That's correct. These are all minor bug fixes that can be made safely to 7.0, so I
> thought it was appropriate to do that. Let me know if this part of my workflow is
> wrong, if I should only be touching master. The changes I'm making aren't
> dealing with regressions, just things that should probably be fixed sooner rather
> than later.
>
> > I've been following these steps:
> > > 1)}whöŽ?IÚ4ÃÎb
> > > https://wiki.php.net/vcs/gitworkflow#developing_patches_yourself
> > >
> > > All the changes I've made have been first pushed to PHP-7.0. Then I
> > > would merge into PHP-7.1, then I would merge PHP-7.1 into master.
> > >
> > Correct. Together with the patches, the news in 7.0 and 7.1 need to
> > contain the same item. As you have the corresponding config, the merge
> > from
> > 7.0 to 7.1 won't touch the NEWS file, so in 7.1 the NEWS item has to
> > edited and commited separately. At the end, the NEWS item needs to be
> > in every branch where the patch was merged in (except master currently).
> >
>
> I don't follow this part. The NEWS file in 7.1 only shows changes for that version.
> The changes I'm making are "new" to an earlier version, so they won't be
> part of
> what's new in a version that will be released later.
>
They have to :) It is simply a project rule, so that's how it is being done. Every release has
to contain own NEWS items. If a bug is fixed in multiple branches, every branch has to contain a
NEWS item. For instance, imagine bug0 is fixed in earliest in 5.6, and another bug1 is fixed in
earliest in 7.0. Everything is merged up into 7.1 and master as per the workflow. Then the NEWS
files will be as follows:
5.6:
Fixed bug0;
7.0:
Fixed bug0
Fixed bug1
7.1:
Fixed bug0
Fixed bug1
Fixed bug2 which is relevant for 7.1+
Master:
Implemented new feature xy, master only
...
This is the pattern how in needs to be handled. Some patches might be not relevant for upper
branches, so news land only in the corresponding file. But that's another situation, this
pattern is about the general case. If we release 7.1.x, we cannot tell users to go read NEWS from
5.6.x and 7.x.x which will have possibly completely unrelated information.
This is not the part about "merging NEWS" you've mentioned earlier. The git merge is
about the git workflow that requires everything to be merged through the branches into master. But
the actual NEWS items are being updated manually in the branches where they apply. It has to do with
the release news handling, not the git workflow.
> Is that the global config, or repo only? If you please could show all the
> > items relevant to PHP.
>
>
> This is repo only.
>
> As well, the command sequence you use to merge and push those.
>
>
> I'm using the commands in the wiki page I linked. As far as specific order:
>
> - commit to PHP-7.0
> - push PHP-7.0
> - merge PHP-7.0 to PHP-7.1
> - push PHP-7.1
> - merge PHP-7.1 to master
> - push master
>
> It does feel a little like there's some detail I'm not communicating. It seems like
> this should be more straightforward than it is.
You could try to add this into .git/config
[push]
default = matching
I usually do that to first merge and then push everything at once. From your previous message I see
that the git url is correct. You could try to use the https push URL instead, maybe that tells some
diff. From what I see, the karma is there, the other files are going through and the merges work.
The karma for the NEWS is granted same way as for ext/pdo_dblib, so there is no reason for it to
work differently :/ That's why I asked you to post the exact things as there might be the key
to figure out the issue without having to debug on remote.
Regards
Anatol