Mercurial > hgsubversion
changeset 1199:955f7173e498
svnmeta: call makememfilectx
author | Sean Farley <sean.michael.farley@gmail.com> |
---|---|
date | Mon, 02 Jun 2014 19:09:11 -0500 |
parents | b1a6edc78bfb |
children | 4b6b101474e6 |
files | hgsubversion/svnmeta.py |
diffstat | 1 files changed, 13 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- 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: