comparison mercurial/context.py @ 44023:3216cabffd4a

commit: change default `editor` parameter to None Flagged by PyCharm as a boolean not being callable later where it is used. There's no actual bug here because of `if editor` checks before using. Differential Revision: https://phab.mercurial-scm.org/D7768
author Matt Harbison <matt_harbison@yahoo.com>
date Sat, 28 Dec 2019 02:02:34 -0500
parents e685fac56693
children f652b7ddc1d4
comparison
equal deleted inserted replaced
44022:c1ccefb513e4 44023:3216cabffd4a
2736 filectxfn, 2736 filectxfn,
2737 user=None, 2737 user=None,
2738 date=None, 2738 date=None,
2739 extra=None, 2739 extra=None,
2740 branch=None, 2740 branch=None,
2741 editor=False, 2741 editor=None,
2742 ): 2742 ):
2743 super(memctx, self).__init__( 2743 super(memctx, self).__init__(
2744 repo, text, user, date, extra, branch=branch 2744 repo, text, user, date, extra, branch=branch
2745 ) 2745 )
2746 self._rev = None 2746 self._rev = None
2897 parents=None, 2897 parents=None,
2898 text=None, 2898 text=None,
2899 user=None, 2899 user=None,
2900 date=None, 2900 date=None,
2901 extra=None, 2901 extra=None,
2902 editor=False, 2902 editor=None,
2903 ): 2903 ):
2904 if text is None: 2904 if text is None:
2905 text = originalctx.description() 2905 text = originalctx.description()
2906 super(metadataonlyctx, self).__init__(repo, text, user, date, extra) 2906 super(metadataonlyctx, self).__init__(repo, text, user, date, extra)
2907 self._rev = None 2907 self._rev = None