sapling/eden/scm/tests/test-absorb-phase-t.py
Durham Goode e1c73204f6 drawdag: use bookmarks instead of tags
Summary:
A future diff will remove tags entirely, so let's move drawdag to be
bookmark based.

Reviewed By: quark-zju

Differential Revision: D18995059

fbshipit-source-id: 70ef67259b37ef9821009d0145aa1e03c09b1309
2019-12-20 16:14:18 -08:00

39 lines
663 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 phase -r A --public -q"
sh % "hg phase -r C --secret --force -q"
sh % "hg update C -q"
sh % "printf B1" > "B"
sh % "hg absorb -aq"
sh % "hg log -G -T '{desc} {phase}'" == r"""
@ C secret
|
o B draft
|
o A public"""