Skip to content
Snippets Groups Projects
Commit d953bcb8 authored by Georges Racinet's avatar Georges Racinet
Browse files

Using mercurial_testhelpers 0.4

This gives us some shortcuts with wrapper path and config.
parent d77851c3
No related branches found
Tags 0.10.1
1 merge request!27Gitaly comparison tests
......@@ -29,15 +29,9 @@
if relative_path is None:
relative_path = 'repo-' + hex(random.getrandbits(64))[2:]
repo_path = storages_root / storage / relative_path
wrapper = LocalRepoWrapper.init(repo_path,
config={b'extensions': {b'topic': b'',
b'evolve': b''}}
)
wrapper.path = repo_path
# Writing the config in the repo-local HGRC so that the HGitaly server
# can have it too. TODO we need an option on LocalRepoWrapper for that.
(repo_path / '.hg' / 'hgrc').write_text(
'\n'.join(('[extensions]', 'topic=')))
config = dict(extensions=dict(topic='', evolve=''))
wrapper = LocalRepoWrapper.init(repo_path, config=config)
wrapper.write_hgrc(config)
grpc_repo = Repository(relative_path=str(relative_path),
storage_name=storage)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment