sapling/eden/scm/tests/test-fb-hgext-tweakdefaults-bookmarks-t.py
Jun Wu 2a99866d7b codemod: update license headers
Summary:
The "Portions" license cannot be updated automatically. So this is a manual
update using:

  sd -s 'Portions Copyright (c) Facebook, Inc. and its affiliates.' 'Portions Copyright (c) Meta Platforms, Inc. and affiliates.' `rg -l Facebook`
  sd -s 'Copyright (c) Facebook, Inc. and its affiliates.' 'Copyright (c) Meta Platforms, Inc. and affiliates.' `rg -l Facebook`

Differential Revision: D33420114

fbshipit-source-id: 49ae00a7b62e3b8cc6c5dd839b3c104a75e72a56
2022-01-05 14:43:32 -08:00

38 lines
762 B
Python

# Copyright (c) Meta Platforms, Inc. and affiliates.
#
# This software may be used and distributed according to the terms of the
# GNU General Public License version 2.
from __future__ import absolute_import
from testutil.dott import feature, sh, testtmp # noqa: F401
# Set up
(
sh % "cat"
<< r"""
[experimental]
evolution=all
[extensions]
amend=
tweakdefaults=
"""
>> "$HGRCPATH"
)
# Test hg bookmark works with hidden commits
sh % "hg init repo1"
sh % "cd repo1"
sh % "touch a"
sh % "hg commit -A a -m a"
sh % "echo 1" >> "a"
sh % "hg commit a -m a1"
sh % "hg hide da7a5140a611 -q"
sh % "hg bookmark b -r da7a5140a611 -q"
# Same test but with remotenames enabled
sh % "hg bookmark b2 -r da7a5140a611 -q --config 'extensions.remotenames='"