mirror of
https://github.com/facebook/sapling.git
synced 2024-12-29 08:02:24 +03:00
f1afaa9ae4
Summary: Migrate some Python tests to use narrow-heads. Reviewed By: DurhamG Differential Revision: D22130167 fbshipit-source-id: 5cc71711b5bc674daed5040909e7cd141b7a9cfc
38 lines
619 B
Python
38 lines
619 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"
|
|
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"""
|