mercurial/debugcommands.py
changeset 35400 8a0cac20a1ad
parent 35399 dffc35a5be9f
child 35401 cd3392cb5818
--- a/mercurial/debugcommands.py	Sat Dec 09 14:22:12 2017 -0800
+++ b/mercurial/debugcommands.py	Mon Dec 11 09:27:40 2017 -0800
@@ -225,7 +225,8 @@
 
                 def fctxfn(repo, cx, path):
                     if path in filecontent:
-                        return context.memfilectx(repo, path, filecontent[path])
+                        return context.memfilectx(repo, cx, path,
+                                                  filecontent[path])
                     return None
 
                 if len(ps) == 0 or ps[0] < 0: