Read about our upcoming Code of Conduct on this issue

Commit 4d086cf6 authored by Georges Racinet's avatar Georges Racinet 🦑
Browse files

hg-native: preparing the instance

which I've been doing manually on my development workspaces.
Of course the hg-native mode hadn't a chance to pass on CI
before this.
parent f5266cf45373
Pipeline #13433 passed with stage
in 33 minutes and 1 second
......@@ -273,6 +273,11 @@ class Heptapod:
self.set_application_settings(
allow_local_requests_from_hooks_and_services="true")
# Mercurial native projects (vcs_types='hg') arent allowed by
# default
if self.hg_native and 'hg' not in self.settings.get('vcs_types', ()):
self.set_vcs_types_settings(['hg', 'git', 'hg_git'])
logger.info("Preparing basic user.")
session.ensure_user(self, 'test_basic',
fullname='Bäsîc Test',
......@@ -443,6 +448,9 @@ class Heptapod:
self.prepare(self.users['root']['password'])
raise
def set_vcs_types_settings(self, vcs_types):
self.set_application_settings(vcs_types=','.join(vcs_types))
def apply_hashed_storage_setting(self, hashed_storage):
# TODO it would be tempting not to restart if the setting is already
# at the wished value, but this currently cannot take into account
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment