##// END OF EJS Templates
simplemerge: convert MergeInput to regular, non-attr.ib class...
Martin von Zweigbergk -
r49594:aed8ef33 default
parent child Browse files
Show More
@@ -19,7 +19,6 b''
19 from __future__ import absolute_import
19 from __future__ import absolute_import
20
20
21 from .i18n import _
21 from .i18n import _
22 from .thirdparty import attr
23 from . import (
22 from . import (
24 error,
23 error,
25 mdiff,
24 mdiff,
@@ -474,14 +473,14 b' def _resolve(m3, sides):'
474 return lines
473 return lines
475
474
476
475
477 @attr.s
478 class MergeInput(object):
476 class MergeInput(object):
479 fctx = attr.ib()
477 def __init__(self, fctx, label=None, label_detail=None):
480 label = attr.ib(default=None)
478 self.fctx = fctx
479 self.label = label
481 # If the "detail" part is set, then that is rendered after the label and
480 # If the "detail" part is set, then that is rendered after the label and
482 # separated by a ':'. The label is padded to make the ':' aligned among all
481 # separated by a ':'. The label is padded to make the ':' aligned among
483 # merge inputs.
482 # all merge inputs.
484 label_detail = attr.ib(default=None)
483 self.label_detail = label_detail
485
484
486
485
487 def simplemerge(
486 def simplemerge(
General Comments 0
You need to be logged in to leave comments. Login now