diff mercurial/cmdutil.py @ 32785:041d976b662a

context: inline makememctx (API) I have always thought it weird that we have a helper method instead of just using __init__. So, I ripped it out.
author Sean Farley <sean@farley.io>
date Sat, 10 Jun 2017 10:24:33 -0400
parents 9d201b39ccd9
children de7dc25ecf2e
line wrap: on
line diff
--- a/mercurial/cmdutil.py	Fri Jun 09 13:39:13 2017 -0700
+++ b/mercurial/cmdutil.py	Sat Jun 10 10:24:33 2017 -0400
@@ -1108,11 +1108,13 @@
                     editor = None
                 else:
                     editor = getcommiteditor(editform='import.bypass')
-                memctx = context.makememctx(repo, (p1.node(), p2.node()),
+                memctx = context.memctx(repo, (p1.node(), p2.node()),
                                             message,
-                                            user,
-                                            date,
-                                            branch, files, store,
+                                            files=files,
+                                            filectxfn=store,
+                                            user=user,
+                                            date=date,
+                                            branch=branch,
                                             editor=editor)
                 n = memctx.commit()
             finally: