sapling/eden/scm/tests/test-fb-hgext-treemanifest-disabled-t.py
Durham Goode 1e3ec1859e py3: enable some -t.py tests
Summary: These now pass.

Reviewed By: xavierd

Differential Revision: D19669905

fbshipit-source-id: b141ea6baefa6a6eb92a0c8d70c46214ea24446d
2020-01-31 13:55:11 -08:00

39 lines
846 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"""