mirror of
https://github.com/facebook/sapling.git
synced 2024-10-11 01:07:15 +03:00
1e3ec1859e
Summary: These now pass. Reviewed By: xavierd Differential Revision: D19669905 fbshipit-source-id: b141ea6baefa6a6eb92a0c8d70c46214ea24446d
34 lines
851 B
Python
34 lines
851 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
|
|
|
|
|
|
|
|
|
|
# Setup the repository
|
|
|
|
sh % "hg init myrepo"
|
|
sh % "cd myrepo"
|
|
sh % "mkdir -p foo/bar-test foo/bartest"
|
|
sh % "echo a" > "foo/bar-test/a.txt"
|
|
sh % "echo b" > "foo/bartest/b.txt"
|
|
sh % "hg add ." == r"""
|
|
adding foo/bar-test/a.txt
|
|
adding foo/bartest/b.txt"""
|
|
sh % "hg commit -m Init"
|
|
|
|
sh % "mkdir foo/bar"
|
|
sh % "echo c" > "foo/bar/c.txt"
|
|
sh % "hg add ." == r"""
|
|
adding foo/bar/c.txt"""
|
|
sh % "hg commit -m 'Add foo/bar/c.txt'"
|
|
|
|
sh % "hg diff -r .^ -r . --stat" == r"""
|
|
foo/bar/c.txt | 1 +
|
|
1 files changed, 1 insertions(+), 0 deletions(-)"""
|