sapling/eden/scm/tests/test-revlog-group-emptyiter-t.py
Durham Goode 4f8c30b04e py3: enable 92 py3 tests
Summary: These now pass

Reviewed By: singhsrb

Differential Revision: D19785175

fbshipit-source-id: bf92757e3fe0753e1b61ffddfd30a37fb40a642f
2020-02-17 14:52:37 -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=!'"
# Issue1678: IndexError when pushing
# setting up base repo
sh % "hg init a"
sh % "cd a"
sh % "touch a"
sh % "hg ci -Am a" == "adding a"
sh % "cd .."
# cloning base repo
sh % "hg clone a b" == r"""
updating to branch default
1 files updated, 0 files merged, 0 files removed, 0 files unresolved"""
sh % "cd b"
# setting up cset to push
sh % "hg up null" == "0 files updated, 0 files merged, 1 files removed, 0 files unresolved"
sh % "touch a"
# different msg so we get a clog new entry
sh % "hg ci -Am b" == "adding a"
# pushing
sh % "hg push -f ../a" == r"""
pushing to ../a
searching for changes
adding changesets
adding manifests
adding file changes
added 1 changesets with 0 changes to 0 files"""
sh % "cd .."