mirror of
https://github.com/facebook/sapling.git
synced 2024-10-09 16:31:02 +03:00
e179789b7b
Summary: Treestate is the only supported dirstate format. Remove test cases about legacy dirstates. Reviewed By: DurhamG Differential Revision: D24340584 fbshipit-source-id: 2ebaa7d5aa9e8639e3ce4caa67c4f93155b52558
42 lines
789 B
Python
42 lines
789 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
|
|
|
|
|
|
feature.require(["symlink"])
|
|
|
|
sh % "cd $TESTTMP"
|
|
|
|
sh % "newrepo"
|
|
sh % "mkdir a b"
|
|
sh % "touch a/x"
|
|
|
|
sh % "hg ci -m init -A a/x"
|
|
|
|
# Replace the directory with a symlink
|
|
|
|
sh % "mv a/x b/x"
|
|
sh % "rmdir a"
|
|
sh % "ln -s b a"
|
|
|
|
# "! a/x" should be shown, as it is implicitly removed
|
|
|
|
sh % "hg status" == r"""
|
|
! a/x
|
|
? a
|
|
? b/x"""
|
|
|
|
sh % "hg ci -m rename -A ." == r"""
|
|
adding a
|
|
removing a/x
|
|
adding b/x"""
|
|
|
|
# "a/x" should not show up in "hg status", even if it exists
|
|
|
|
sh % "hg status"
|