sapling/eden/scm/tests/test-issue1102-t.py
Durham Goode 218c83d574 tags: remove tip tag
Summary:
In a future diff we'll be removing tags. The most prevalent tag is
'tip', which shows up in a ton of test output. Let's drop that tag first, so we
can safely update the tests before we drop tags entirely.

Reviewed By: xavierd

Differential Revision: D18995058

fbshipit-source-id: 8c63710cd4ed567ea24e32724b8660f9006a61f1
2019-12-20 16:14:19 -08:00

25 lines
670 B
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 % "rm -rf a"
sh % "hg init a"
sh % "cd a"
sh % "echo a" > "a"
sh % "hg ci -Am0" == "adding a"
sh % "hg tag t1"
sh % "hg tag --remove t1"
sh % "hg co 1" == "1 files updated, 0 files merged, 0 files removed, 0 files unresolved"
sh % "hg tag -f -r0 t1"
sh % "hg tags" == "t1 0:f7b1eb17ad24"
sh % "cd .."