comparison mercurial/context.py @ 30614:9bf43a72b49d

context: correct metadataonlyctx's parameter It's "originalctx", not "path" as Yuya pointed in [1]. [1]: www.mercurial-scm.org/pipermail/mercurial-devel/2016-December/091508.html
author Jun Wu <quark@fb.com>
date Fri, 16 Dec 2016 21:02:39 +0000
parents 73ce055b169a
children ce662ee40d2d
comparison
equal deleted inserted replaced
30613:b52e8a4f4c0f 30614:9bf43a72b49d
1989 user receives the committer name and defaults to current repository 1989 user receives the committer name and defaults to current repository
1990 username, date is the commit date in any format supported by 1990 username, date is the commit date in any format supported by
1991 util.parsedate() and defaults to current date, extra is a dictionary of 1991 util.parsedate() and defaults to current date, extra is a dictionary of
1992 metadata or is left empty. 1992 metadata or is left empty.
1993 """ 1993 """
1994 def __new__(cls, repo, path, *args, **kwargs): 1994 def __new__(cls, repo, originalctx, *args, **kwargs):
1995 return super(metadataonlyctx, cls).__new__(cls, repo) 1995 return super(metadataonlyctx, cls).__new__(cls, repo)
1996 1996
1997 def __init__(self, repo, originalctx, parents, text, user=None, date=None, 1997 def __init__(self, repo, originalctx, parents, text, user=None, date=None,
1998 extra=None, editor=False): 1998 extra=None, editor=False):
1999 super(metadataonlyctx, self).__init__(repo, text, user, date, extra) 1999 super(metadataonlyctx, self).__init__(repo, text, user, date, extra)