[PATCH 2 of 2 STABLE] diff: disable diff.noprefix option for diffstat (issue5759)

Kevin Bullock kbullock+mercurial at ringworld.org
Mon Dec 18 10:55:00 EST 2017


> On Dec 18, 2017, at 09:52, Kevin Bullock <kbullock+mercurial at ringworld.org> wrote:
> 
>> On Dec 17, 2017, at 05:50, Yuya Nishihara <yuya at tcha.org> wrote:
>> 
>> # HG changeset patch
>> # User Yuya Nishihara <yuya at tcha.org>
>> # Date 1513503785 -32400
>> #      Sun Dec 17 18:43:05 2017 +0900
>> # Branch stable
>> # Node ID 21f4da606ff71e45725bd35db1982e3b02b7127c
>> # Parent  5a2aea363d40e2a200317d366e61a390e39fd9fa
>> diff: disable diff.noprefix option for diffstat (issue5759)
>> 
>> We could use patch.diffhunks() instead of patch.diff() to get filenames
>> without parsing patch content, but that isn't always possible because we
>> sometimes feed raw patch data to patch.diffstat().
> 
> Does this fix the issue with `hg log -p --stat` as well?

Oh, now that I read the added test case, I see it does. Sorry for the noise :)

pacem in terris / мир / शान्ति / ‎‫سَلاَم‬ / 平和
Kevin R. Bullock



More information about the Mercurial-devel mailing list