changeset 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 afd047a7df45
children 6b3e9cb69761
files tests/test_util.py
diffstat 1 files changed, 8 insertions(+), 5 deletions(-) [+]
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),