mirror of
https://github.com/facebook/sapling.git
synced 2024-10-11 17:27:53 +03:00
a459d31cae
Summary: This makes it possible to execute Rust commands from the Python tests. Test changes: - test-command-template-t: non-utf8 command-line arguments are rejected at the function signature level - test-dispatch-debug-prefix-t: the error is now printed by Rust code, which uses spaces instead of tabs. - test-root-t: the test now passes Reviewed By: xavierd Differential Revision: D16866459 fbshipit-source-id: 386931c5497b04c53efc08fbb4de708812517ad9
24 lines
539 B
Python
24 lines
539 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
|
|
|
|
|
|
# make shared repo
|
|
|
|
sh % "enable share"
|
|
sh % "newrepo repo1"
|
|
sh % "echo a" > "a"
|
|
sh % "hg commit -q -A -m init"
|
|
sh % "cd '$TESTTMP'"
|
|
sh % "hg share -q repo1 repo2"
|
|
sh % "cd repo2"
|
|
|
|
# test repo --shared
|
|
|
|
sh % "hg root --shared" == "$TESTTMP/repo1"
|