tests/testlib/topic_setup.sh
author Pierre-Yves David <pierre-yves.david@octobus.net>
Thu, 18 Apr 2019 11:12:58 +0200
branchstable
changeset 4531 1d1f8f56daac
parent 2828 fa2deeb5dd03
permissions -rw-r--r--
topic: introduce a `hastopicext(repo)` function This function check if a repository has the extension enabled or not.

#!/bin/sh
. $TESTDIR/testlib/pythonpath.sh

# This file holds logic that is used in many tests.
# It can be called in a test like this:
#  $ . "$TESTDIR/testlib/topic_setup.sh"

# Enable obsolete markers and enable extensions
cat >> $HGRCPATH << EOF
[experimental]
evolution=createmarkers,exchange

[extensions]
rebase=
topic=
EOF