# HG changeset patch # User Martin von Zweigbergk # Date 2022-02-05 02:36:36 # Node ID aed8ef33db8b6f97cc72bcb3d1c903549993115b # Parent 9ee70e175fed3d370fc20e255a5d2b5f9f3bebb6 simplemerge: convert MergeInput to regular, non-attr.ib class I'm about to add more logic and state to it. Differential Revision: https://phab.mercurial-scm.org/D12145 diff --git a/mercurial/simplemerge.py b/mercurial/simplemerge.py --- a/mercurial/simplemerge.py +++ b/mercurial/simplemerge.py @@ -19,7 +19,6 @@ from __future__ import absolute_import from .i18n import _ -from .thirdparty import attr from . import ( error, mdiff, @@ -474,14 +473,14 @@ def _resolve(m3, sides): return lines -@attr.s class MergeInput(object): - fctx = attr.ib() - label = attr.ib(default=None) - # If the "detail" part is set, then that is rendered after the label and - # separated by a ':'. The label is padded to make the ':' aligned among all - # merge inputs. - label_detail = attr.ib(default=None) + def __init__(self, fctx, label=None, label_detail=None): + self.fctx = fctx + self.label = label + # If the "detail" part is set, then that is rendered after the label and + # separated by a ':'. The label is padded to make the ':' aligned among + # all merge inputs. + self.label_detail = label_detail def simplemerge(