sapling/eden/scm/tests/features.py
Jun Wu 664fa0b8ec config: remove experimental.head-based-commit-transaction
Summary:
The config is not actually used any more (with rust-commits, it is forced on, without rust-commits,
there is no point to keep it on). Therefore removed.

Reviewed By: singhsrb

Differential Revision: D23771570

fbshipit-source-id: ad3e89619ac5e193ef552c25fc064ca9eddba0c6
2020-09-18 13:28:34 -07:00

46 lines
1.5 KiB
Python

# Copyright (c) Facebook, Inc. and its affiliates.
#
# This software may be used and distributed according to the terms of the
# GNU General Public License version 2.
mutationblacklist = """
test-commitcloud-backup-all.t
test-commitcloud-sync-oscillation.t
test-fb-hgext-hiddenerror.t
test-fb-hgext-snapshot-show.t
test-fb-hgext-treemanifest-infinitepush.t
test-fb-hgext-treemanifest-treeonly-linknodes.t
test-hggit-incoming.t
test-infinitepush-forwardfillerqueue.t
test-infinitepush-replaybookmarksqueue-ignore-backup.t
test-infinitepush-replaybookmarksqueue-multiple-updates.t
test-infinitepush-replaybookmarksqueue-one-bookmark.t
test-inherit-mode.t
test-mutation-fromobsmarkers.t
test-rebase-dest.t
test-revset2.t
test-obsmarker-template-t.py
""".split()
narrowheadsincompatiblelist = """
test-bookmarks.t
test-hgext-perfsuite.t
test-revset2.t
test-revset-t.py
"""
def setup(testname, hgrcpath):
# Disable mutation.record to maintain commit hashes.
with open(hgrcpath, "a") as f:
f.write("\n[mutation]\nrecord=False\n")
# Disable mutation and re-enable obsstore on unsupported tests.
if testname in mutationblacklist:
with open(hgrcpath, "a") as f:
f.write("\n[mutation]\nenabled=False\nproxy-obsstore=False\n")
# Disable narrow-heads if incompatible.
if testname in narrowheadsincompatiblelist:
with open(hgrcpath, "a") as f:
f.write("\n[experimental]\nnarrow-heads=False\n")