# HG changeset patch
# User Sean Farley <sean.michael.farley@gmail.com>
# Date 1401754151 18000
# Node ID 955f7173e498a3457aec9998e0b75191f0f00489
# Parent  b1a6edc78bfb04f6fc3bd58ffce343ab0d2313f5
svnmeta: call makememfilectx

diff --git a/hgsubversion/svnmeta.py b/hgsubversion/svnmeta.py
--- a/hgsubversion/svnmeta.py
+++ b/hgsubversion/svnmeta.py
@@ -7,6 +7,7 @@ from mercurial import util as hgutil
 from mercurial import revlog
 from mercurial import node
 
+import compathacks
 import util
 import maps
 import layouts
@@ -662,11 +663,12 @@ class SVNMeta(object):
         tagdata += '%s %s\n' % (node.hex(hash), self.tagmap.get(tag, tag))
         def hgtagsfn(repo, memctx, path):
             assert path == '.hgtags'
-            return context.memfilectx(path=path,
-                                      data=tagdata,
-                                      islink=False,
-                                      isexec=False,
-                                      copied=False)
+            return compathacks.makememfilectx(repo,
+                                              path=path,
+                                              data=tagdata,
+                                              islink=False,
+                                              isexec=False,
+                                              copied=False)
         revnum, branch = self.get_source_rev(ctx=parentctx)[:2]
         newparent = None
         for child in parentctx.children():
@@ -732,9 +734,12 @@ class SVNMeta(object):
 
             # add new changeset containing updated .hgtags
             def fctxfun(repo, memctx, path):
-                return context.memfilectx(path='.hgtags', data=src,
-                                          islink=False, isexec=False,
-                                          copied=None)
+                return compathacks.makememfilectx(repo,
+                                                  path='.hgtags',
+                                                  data=src,
+                                                  islink=False,
+                                                  isexec=False,
+                                                  copied=None)
 
             extra = self.genextra(rev.revnum, b)
             if fromtag: