sapling/eden/scm/tests/test-migrate-inline-changelog-t.py
Jun Wu f54b8b3e1d changelog: use Rust RevlogIndex for nodemap
Reviewed By: DurhamG

Differential Revision: D22657192

fbshipit-source-id: 3c18364c4dc55db2f2f4ff96c313aa675e01980d
2020-07-30 20:32:35 -07:00

23 lines
772 B
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 or any later version.
from __future__ import absolute_import
from testutil.dott import feature, sh, testtmp # noqa: F401
# Disable rust-commits. Need low-level revlog access.
sh % "setconfig format.inline-changelog=1 experimental.rust-commits=0"
sh % "newrepo"
sh % "echo A" | "hg debugdrawdag"
sh % 'hg dbsh -c "ui.write(str(repo.svfs.exists(\\"00changelog.d\\")))"' == "False"
sh % "setconfig format.inline-changelog=0"
sh % 'hg log -r tip -T "{desc}\\n"' == r"""
(migrating to non-inlined changelog)
A"""
sh % 'hg dbsh -c "ui.write(str(repo.svfs.exists(\\"00changelog.d\\")))"' == "True"