sapling/eden/scm/tests/test-fb-hgext-treemanifest-disabled-t.py
John Reese f42333f17c Apply pyfmt to fbcode/eden
Summary:
Formats a subset of opted-in Python files in fbsource.
Black formatting was applied first, which is guaranteed
safe as the AST will not have changed during formatting.
Pyfmt was then run, which also includes import sorting.
The changes from isort were manually reviewed, and
some potentially dangerous changes were reverted,
and the  directive was added to those
files. A final run of pyfmt shows no more changes to
be applied.

Reviewed By: zertosh

Differential Revision: D24101830

fbshipit-source-id: 0f2616873117a821dbc6cfb6d8e4f64f4420312b
2020-10-04 04:51:00 -07:00

37 lines
844 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"""