mirror of
https://github.com/facebook/sapling.git
synced 2025-01-06 21:48:36 +03:00
e1c73204f6
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
39 lines
663 B
Python
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"""
|