sapling/eden/scm/tests/test-treemanifest-diff-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

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(-)"""