mirror of
https://github.com/facebook/sapling.git
synced 2025-01-01 01:25:49 +03:00
ef8c3435c4
Summary: We no longer use repository configs, so remove the `repository` subcommand that supported adding and listing these configurations. The main information that used to be included in the repository configuration was the bind mount settings. This has since been replaced with the `.eden-redirections` file that is placed directly in each repository. Reviewed By: wez Differential Revision: D20876462 fbshipit-source-id: cc7d8e6f0a6a2e04fbf3159417af41a44908b3a8
25 lines
778 B
Python
25 lines
778 B
Python
#!/usr/bin/env python3
|
|
# 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.
|
|
|
|
import pathlib
|
|
|
|
from .lib import testcase
|
|
|
|
|
|
@testcase.eden_repo_test
|
|
class EdenClientTest(testcase.EdenRepoTest):
|
|
def populate_repo(self) -> None:
|
|
self.repo.write_file("hello", "hola\n")
|
|
self.repo.commit("Initial commit.")
|
|
|
|
def test_client_dir_for_mount(self) -> None:
|
|
clone_path = pathlib.Path(self.tmp_dir, "test_checkout")
|
|
self.eden.run_cmd("clone", self.repo.path, str(clone_path))
|
|
self.assertEqual(
|
|
self.eden.client_dir_for_mount(clone_path),
|
|
pathlib.Path(self.eden_dir, "clients", "test_checkout"),
|
|
)
|