Mercurial > hg-stable
changeset 48753:aed8ef33db8b
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
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Fri, 04 Feb 2022 18:36:36 -0800 |
parents | 9ee70e175fed |
children | 59c6724ddccb |
files | mercurial/simplemerge.py |
diffstat | 1 files changed, 7 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/simplemerge.py Thu Feb 10 09:59:07 2022 -0800 +++ b/mercurial/simplemerge.py Fri Feb 04 18:36:36 2022 -0800 @@ -19,7 +19,6 @@ from __future__ import absolute_import from .i18n import _ -from .thirdparty import attr from . import ( error, mdiff, @@ -474,14 +473,14 @@ 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(