changeset 30609: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 b52e8a4f4c0f
children 66cffa87d2f2
files mercurial/context.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/context.py	Mon Dec 12 13:32:45 2016 +0100
+++ b/mercurial/context.py	Fri Dec 16 21:02:39 2016 +0000
@@ -1991,7 +1991,7 @@
     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,