sapling/eden/scm/tests/test-absorb-phase-t.py
Durham Goode c80cdf1f49 treemanifest: enable treemanifest.useruststore=True for most tests
Summary:
The remaining test failures are mostly around bundle support, which
I'll fix in a later diff.

Reviewed By: quark-zju

Differential Revision: D23664037

fbshipit-source-id: 2bdde3cb4fcded6e0cf3afdc23269662544821df
2020-09-24 09:46:59 -07:00

39 lines
639 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
sh % "cat" << r"""
[extensions]
absorb=
""" >> "$HGRCPATH"
sh % "hg init repo"
sh % "cd repo"
sh % "hg debugdrawdag" << r"""
C
|
B
|
A
"""
sh % "hg debugmakepublic -r A"
sh % "hg update C -q"
sh % "printf B1" > "B"
sh % "hg absorb -aq"
sh % "hg log -G -T '{desc} {phase}'" == r"""
@ C draft
|
o B draft
|
o A public"""