sapling/eden/scm/tests/test-fb-hgext-treemanifest-disabled-t.py
Adam Simpkins ab3a7cb21f Move fb-mercurial sources into an eden/scm subdirectory.
Summary:
In preparation for merging fb-mercurial sources to the Eden repository,
move everything from the top-level directory into an `eden/scm`
subdirectory.
2019-11-13 16:04:48 -08:00

38 lines
876 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
sh % "'CACHEDIR=`pwd`/hgcache'"
sh % '. "$TESTDIR/library.sh"'
sh % "hg init client1"
sh % "cd client1"
sh % "cat" << r"""
[remotefilelog]
reponame=master
cachepath=$CACHEDIR
""" >> ".hg/hgrc"
sh % "echo a" > "a"
sh % "mkdir dir"
sh % "echo b" > "dir/b"
sh % "hg commit -Aqm 'initial commit'"
sh % "hg init ../client2"
sh % "cd ../client2"
sh % "hg pull ../client1" == r"""
pulling from ../client1
requesting all changes
adding changesets
adding manifests
adding file changes
added 1 changesets with 2 changes to 2 files
new changesets a8dee6dcff44"""