# HG changeset patch # User Augie Fackler # Date 2019-11-06 20:35:21 # Node ID f2f460cdb4f5590c9b719147f02e721208f048ef # Parent fc19f8ab8199914939c97d07fa864e124a5c516a mdiff: mark diffopts as having dynamic attributes This class looks like we could move it to being an attrs and life would be better, but let's do that later. Differential Revision: https://phab.mercurial-scm.org/D7284 diff --git a/mercurial/mdiff.py b/mercurial/mdiff.py --- a/mercurial/mdiff.py +++ b/mercurial/mdiff.py @@ -38,6 +38,7 @@ textdiff = bdiff.bdiff splitnewlines = bdiff.splitnewlines +# TODO: this looks like it could be an attrs, which might help pytype class diffopts(object): '''context is the number of context lines text treats all files as text @@ -52,6 +53,8 @@ class diffopts(object): upgrade generates git diffs to avoid data loss ''' + _HAS_DYNAMIC_ATTRIBUTES = True + defaults = { b'context': 3, b'text': False,