Mercurial > public > mercurial-scm > hg
comparison mercurial/patch.py @ 34521:aacb17cc0ee4
configitems: register the 'diff.*' config
All the config were already using a unified function with a forced default, so,
registering them all at once seems safe.
author | Boris Feld <boris.feld@octobus.net> |
---|---|
date | Sun, 08 Oct 2017 21:47:14 +0200 |
parents | 86f3c9760cc4 |
children | fe6125ebdf91 |
comparison
equal
deleted
inserted
replaced
34520:ca5b833ce756 | 34521:aacb17cc0ee4 |
---|---|
2233 # True, or False. | 2233 # True, or False. |
2234 if v or isinstance(v, bool): | 2234 if v or isinstance(v, bool): |
2235 return v | 2235 return v |
2236 if forceplain is not None and ui.plain(): | 2236 if forceplain is not None and ui.plain(): |
2237 return forceplain | 2237 return forceplain |
2238 return getter(section, name or key, None, untrusted=untrusted) | 2238 return getter(section, name or key, untrusted=untrusted) |
2239 | 2239 |
2240 # core options, expected to be understood by every diff parser | 2240 # core options, expected to be understood by every diff parser |
2241 buildopts = { | 2241 buildopts = { |
2242 'nodates': get('nodates'), | 2242 'nodates': get('nodates'), |
2243 'showfunc': get('show_function', 'showfunc'), | 2243 'showfunc': get('show_function', 'showfunc'), |