Mercurial > hgsubversion
changeset 1204:e73df57b2b07
test_utility_commands: call makememfilectx
author | Sean Farley <sean.michael.farley@gmail.com> |
---|---|
date | Mon, 02 Jun 2014 19:55:32 -0500 |
parents | 518a9552f7f9 |
children | f1dd304be8aa |
files | tests/test_utility_commands.py |
diffstat | 1 files changed, 19 insertions(+), 15 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/test_utility_commands.py +++ b/tests/test_utility_commands.py @@ -16,6 +16,7 @@ from hgsubversion import util from hgsubversion import svncommands from hgsubversion import verify from hgsubversion import wrappers +from hgsubversion import compathacks expected_info_output = '''URL: %(repourl)s/%(branch)s Repository Root: %(repourl)s @@ -160,11 +161,12 @@ class UtilityTests(test_util.TestBase): u.pushbuffer() parents = (self.repo['the_branch'].node(), revlog.nullid,) def filectxfn(repo, memctx, path): - return context.memfilectx(path=path, - data='added', - islink=False, - isexec=False, - copied=False) + return compathacks.makememfilectx(repo, + path=path, + data='added', + islink=False, + isexec=False, + copied=False) ctx = context.memctx(self.repo, parents, 'automated test', @@ -203,11 +205,12 @@ class UtilityTests(test_util.TestBase): u = self.ui() parents = (self.repo['the_branch'].node(), revlog.nullid,) def filectxfn(repo, memctx, path): - return context.memfilectx(path=path, - data='added', - islink=False, - isexec=False, - copied=False) + return compathacks.makememfilectx(repo, + path=path, + data='added', + islink=False, + isexec=False, + copied=False) ctx = context.memctx(self.repo, parents, 'automated test', @@ -233,11 +236,12 @@ class UtilityTests(test_util.TestBase): self._load_fixture_and_fetch('two_revs.svndump') parents = (self.repo[0].node(), revlog.nullid,) def filectxfn(repo, memctx, path): - return context.memfilectx(path=path, - data='added', - islink=False, - isexec=False, - copied=False) + return compathacks.makememfilectx(repo, + path=path, + data='added', + islink=False, + isexec=False, + copied=False) ctx = context.memctx(self.repo, parents, 'automated test',