sapling/eden/scm/tests/test-fb-hgext-tweakdefaults-ordering-t.py
Jun Wu 69b33a286f tests: enable visibility for more tests
Summary: Real strip no longer happens.  Revision numbers are changed.

Reviewed By: markbt

Differential Revision: D21894317

fbshipit-source-id: cc335eb9fdbe99c4b7975fead825400474ea1016
2020-06-10 19:29:37 -07:00

37 lines
961 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
# TODO: Make this test compatibile with obsstore enabled.
sh % "setconfig 'experimental.evolution='"
# Set up extensions (order is important here, we must test tweakdefaults loading last)
sh % "cat" << r"""
[extensions]
rebase=
remotenames=
tweakdefaults=
""" >> "$HGRCPATH"
# Run test
sh % "hg init repo"
sh % "cd repo"
sh % "touch a"
sh % "hg commit -Aqm a"
sh % "touch b"
sh % "hg commit -Aqm b"
sh % "hg bookmark AB"
sh % "hg up '.^'" == r"""
0 files updated, 0 files merged, 1 files removed, 0 files unresolved
(leaving bookmark AB)"""
sh % "touch c"
sh % "hg commit -Aqm c"
sh % "hg bookmark C -t AB"
sh % "hg rebase" == 'rebasing d5e255ef74f8 "c" (C)'