( )⚙ D3553 notify: add option to include function names in the diff output

This is an archive of the discontinued Mercurial Phabricator instance.

notify: add option to include function names in the diff output
ClosedPublic

Authored by joerg.sonnenberger on May 12 2018, 5:44 PM.

Details

Summary

This is a localized version of diff.showfunc.

Diff Detail

Repository
rHG Mercurial
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

yuja added a subscriber: yuja.May 16 2018, 8:18 AM

+ notify.show-functions
+ Set to True to get the equivalent of "hg diff --show-functions". Default:
+ False

So is this equivalent to setting the diff option?

[diff]
showfunc = True

I'm not sure if we need notify.show-functions in addition to diff.*
options, but if we do need it, it's probably better to copy the option
name from [diff].

joerg.sonnenberger edited the summary of this revision. (Show Details)May 16 2018, 9:19 AM
joerg.sonnenberger updated this revision to Diff 8715.
yuja added a comment.May 17 2018, 8:12 AM

Queued, thanks.

+ $ hg commit -m changefunction
+ $ hg --cwd ../b --config notify.show-functions=True pull ../a

s/show-functions/showfunc/

This revision was automatically updated to reflect the committed changes.