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

heptapod.intial-import: config flag for initial imports

Rather than listing all these flags painfully on the
command line of wherever imports are called from the Rails
application, this simple setting will rule them all
parent 9179bb9e
No related branches found
No related tags found
1 merge request!8heptapod.intial-import: config flag for initial imports
Pipeline #
......@@ -34,9 +34,10 @@
configitem('heptapod', 'repositories-root')
configitem('heptapod', 'gitlab-shell')
configitem('heptapod', 'mirror-path')
configitem('heptapod', 'initial-import', False)
cmdtable = {}
command = registrar.command(cmdtable)
......@@ -37,9 +38,23 @@
cmdtable = {}
command = registrar.command(cmdtable)
def uipopulate(ui):
if ui.configbool(b'heptapod', b'initial-import'):
ui.note(b'hgext3rd.heptapod',
b"setting config options for initial import")
ui.setconfig(b'experimental',
b'single-head-per-branch', False)
ui.setconfig(b'experimental',
b'topic.publish-bare-branch', False)
ui.setconfig(b'experimental',
b'hg-git.bookmarks-on-named-branches', True)
ui.setconfig(b'experimental', b'hg-git.accept-slash-in-topic-name',
True)
@command(
"pull-force-topic",
[('f', 'force', None, _('run even when remote repository is unrelated')),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment