diff tests/test_util.py @ 1223:7e70337c5be4 stable

test_util: call makememfilectx
author Sean Farley <sean.michael.farley@gmail.com>
date Mon, 02 Jun 2014 19:54:02 -0500
parents 97a064e2075d
children ba8485b9fee0
line wrap: on
line diff
--- a/tests/test_util.py
+++ b/tests/test_util.py
@@ -27,6 +27,8 @@ from mercurial import ui
 from mercurial import util
 from mercurial import extensions
 
+from hgsubversion import compathacks
+
 try:
     from mercurial import obsolete
     obsolete._enabled
@@ -665,11 +667,12 @@ class TestBase(unittest.TestCase):
             copied = None
             if source != dest:
                 copied = source
-            return context.memfilectx(path=dest,
-                                      data=newdata,
-                                      islink=False,
-                                      isexec=False,
-                                      copied=copied)
+            return compathacks.makememfilectx(repo,
+                                              path=dest,
+                                              data=newdata,
+                                              islink=False,
+                                              isexec=False,
+                                              copied=copied)
 
         ctx = context.memctx(repo,
                              (parentctx.node(), node.nullid),