How to get C function names in diffs?

Tom Anderson tom.anderson at e2x.co.uk
Fri Aug 26 13:54:35 UTC 2011


On 26 August 2011 13:21, Peter Weilbacher <mozilla at weilbacher.org> wrote:
> Mads Kiilerich <mads <at> kiilerich.com> writes:
>
>> > (equivalent to |diff --show-c-function|) to see function names of my
>> > code in the patches. For |hg diff| itself this works nicely, but
>> > elsewhere Hg creates/displays patches this has no effect. My main
>> > cases would be to get the function names displayed are in the patches
>> > that Mq creates (i.e. .hg/patches/*) and in the webpage output that I
>> > get from |hg serve|.
>>
>> Setting [diff] showfunc might work all the places you want - see 'hg
>> help config'.
>
> Thanks a lot, it does indeed. :-)
>
> (Interesting that once you know something you find the solution everywhere.
> Before I was looking for the obvious combinations of mercurial diff function
> but didn't find anything. Now lots of webpages come up.)

That's very true! Maybe you should call it Weilbacher's Law? Although
having done so, you would immediately discover that half a dozen
people had already made that observation and named it after themselves
...

tom

-- 
Tom Anderson         |                e2x Ltd, 1 Norton Folgate, London E1 6DB
(e) tom at e2x.co.uk    |    (m) +44 (7960) 989794    |    (f) +44 (20) 7100 3749



More information about the Mercurial mailing list