mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 23:38:50 +03:00
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
This commit is contained in:
parent
9340890321
commit
76875fcc1b
@ -1991,7 +1991,7 @@ class metadataonlyctx(committablectx):
|
||||
util.parsedate() and defaults to current date, extra is a dictionary of
|
||||
metadata or is left empty.
|
||||
"""
|
||||
def __new__(cls, repo, path, *args, **kwargs):
|
||||
def __new__(cls, repo, originalctx, *args, **kwargs):
|
||||
return super(metadataonlyctx, cls).__new__(cls, repo)
|
||||
|
||||
def __init__(self, repo, originalctx, parents, text, user=None, date=None,
|
||||
|
Loading…
Reference in New Issue
Block a user