sapling/eden/scm/tests/test-empty-t.py
Durham Goode d643f48c8c configs: remove loaddynamicconfig option
Summary:
Dynamicconfigs are now part of our critical path. Let's remove the
option to not load them. This also let's us get rid of a circularl dependency
where loading dynamicconfigs required having already loaded some configs. This
will let us move dynammicconfig loading to be before system rc loading in a
later diff.

Reviewed By: sfilipco

Differential Revision: D23309090

fbshipit-source-id: 5138059a8ed944c3616007e7c1289b6a57be0e65
2020-08-25 07:33:28 -07:00

91 lines
1.8 KiB
Python

# Copyright (c) Facebook, Inc. and its affiliates.
# Copyright (c) Mercurial Contributors.
#
# This software may be used and distributed according to the terms of the
# GNU General Public License version 2 or any later version.
from __future__ import absolute_import
from testutil.dott import feature, sh, testtmp # noqa: F401
sh % "setconfig 'extensions.treemanifest=!'"
# Create an empty repo:
sh % "hg init a"
sh % "cd a"
# Try some commands:
sh % "hg log"
sh % "hg histgrep wah" == "[1]"
sh % "hg manifest"
sh % "hg verify" == r"""
checking changesets
checking manifests
crosschecking files in changesets and manifests
checking files
0 files, 0 changesets, 0 total revisions"""
# Check the basic files created:
sh % "ls .hg" == r"""
00changelog.i
blackbox
hgrc.dynamic
requires
store
treestate"""
# Should be empty:
# It's not really empty, though.
sh % "ls .hg/store" == r"""
allheads
metalog
requires"""
# Poke at a clone:
sh % "cd .."
sh % "hg clone a b" == r"""
updating to branch default
0 files updated, 0 files merged, 0 files removed, 0 files unresolved"""
sh % "cd b"
sh % "hg verify" == r"""
checking changesets
checking manifests
crosschecking files in changesets and manifests
checking files
0 files, 0 changesets, 0 total revisions"""
sh % "ls .hg" == r"""
00changelog.i
blackbox
dirstate
hgrc
hgrc.dynamic
requires
store
treestate
undo.branch
undo.desc
undo.dirstate"""
# Should be empty:
# It's not really empty, though.
sh % "ls .hg/store" == r"""
00changelog.d
00changelog.i
00changelog.len
allheads
metalog
requires
undo
undo.backupfiles
undo.bookmarks
undo.phaseroots
undo.visibleheads"""
sh % "cd .."