mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 16:57:49 +03:00
f54b8b3e1d
Reviewed By: DurhamG Differential Revision: D22657192 fbshipit-source-id: 3c18364c4dc55db2f2f4ff96c313aa675e01980d
23 lines
772 B
Python
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"
|