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

44 lines
1.1 KiB
Python

# Copyright (c) Facebook, Inc. and its affiliates.
# Copyright (c) Mercurial Contributors.
#
# 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 % "setconfig 'extensions.treemanifest=!'"
sh % ". helpers-usechg.sh"
# Test for changeset ba7c74081861
# (update dirstate correctly for non-branchmerge updates)
sh % "hg init a"
sh % "cd a"
sh % "echo a" > "a"
sh % "hg add a"
sh % "hg commit -m a"
sh % "cd .."
sh % "hg clone a b" == r"""
updating to branch default
1 files updated, 0 files merged, 0 files removed, 0 files unresolved"""
sh % "cd a"
sh % "hg mv a b"
sh % "hg commit -m move"
sh % "echo b" >> "b"
sh % "hg commit -m b"
sh % "cd ../b"
sh % "hg pull ../a" == r"""
pulling from ../a
searching for changes
adding changesets
adding manifests
adding file changes
added 2 changesets with 2 changes to 1 files"""
sh % "hg update" == "1 files updated, 0 files merged, 1 files removed, 0 files unresolved"
sh % "cd .."