Mercurial > hgsubversion
changeset 1203:518a9552f7f9
test_util: call makememfilectx
author | Sean Farley <sean.michael.farley@gmail.com> |
---|---|
date | Mon, 02 Jun 2014 19:54:02 -0500 |
parents | cccc7a50f66d |
children | e73df57b2b07 |
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),