[Python-Dev] [Python-checkins] CANNOT Patch 3.x NEWS [was cpython (2.7): Issue #14707: add news entry\

Ezio Melotti ezio.melotti at gmail.com
Tue Mar 12 07:52:18 CET 2013


On Tue, Mar 12, 2013 at 8:14 AM, Terry Reedy <tjreedy at udel.edu> wrote:
> On 3/12/2013 1:50 AM, terry.reedy wrote:
>> http://hg.python.org/cpython/rev/c162e2ff15bd
>> changeset:   82624:c162e2ff15bd
>> branch:      2.7
>> parent:      82617:cd0191a9b5c9
>> user:        Terry Jan Reedy <tjreedy at udel.edu>
>> date:        Tue Mar 12 01:26:28 2013 -0400
>> summary:
>>    Issue #14707: add news entry
>> files:
>>    Misc/NEWS |  3 +++
>>    1 files changed, 3 insertions(+), 0 deletions(-)
>> diff --git a/Misc/NEWS b/Misc/NEWS
>> --- a/Misc/NEWS
>> +++ b/Misc/NEWS
>> @@ -944,6 +944,9 @@
>>   Documentation
>>   -------------
>> +- Issue #14707: remove doubled words in docs and docstrings
>> +  reported by Serhiy Storchaka and Matthew Barnett.
>> +
>>   - Issue #16406: combine the pages for uploading and registering to PyPI.
>>   - Issue #16403: Document how distutils uses the maintainer field in
> The above was easy. When I tried to transplant this patch to 3.2, export and
> import, or directly edit 3.2 NEWS with Notepad++ or IDLE, hg makes a 319kb
> patch that deletes and add the entire file in chunks. I did not think I
> should commit and push that.

What are the exact commands you used?
Are your clones up to date (i.e. did you do "hg pull" and "hg up"
before "hg graft")?
  If not, you should pull/update.
Does "hg heads ." show you more than one head?
  If so you should do "hg merge".
Is your clone "clean" (i.e. does "hg status" show anything as 'M')?
  If not, you should do "hg revert -ar 3.2" or "hg up -C 3.2".
Once your clone is clean you can just edit Misc/NEWS manually since
it's easier than trying to graft the 2 changesets you made on 2.7 to
add and edit the Misc/NEWS entry.
You can also check with "hg in" and "hg out" if there's something you
haven't pulled/pushed yet, but that shouldn't be a problem.

> The failure of transplant and import are perhaps understandable because 3.2
> has a gratuitous case difference with /combine/Combine/.
> - Issue #16406: Combine the pages for uploading and registering to PyPI.
> But the inability to make a proper diff from direct edit is something else.
> If I add just a single blank line, even that generates a mega patch. Same
> with 3.3 NEWS. I also tried deleting the file to make hg regenerate from the
> repository database.
> Anyone have any idea what the problem is? Has anything changed with hg,
> windows, line endings and this text file in the last few months? I just
> pushed patches for about 20 scattered files in Docs, Lib, Modules, and Tools
> earlier today, so the problem seems to be specific to NEWS.

Not sure about this, but in the meanwhile you could try what I
suggested above -- if that doesn't work we can find some other
(If you prefer you can come on #python-dev too.)

Best Regards,
Ezio Melotti

> tjr

More information about the Python-Dev mailing list