tests/testlib/topic_setup.sh
changeset 2045 db617700d318
parent 1901 85390446f8c1
child 2828 fa2deeb5dd03
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/testlib/topic_setup.sh	Tue Mar 07 12:04:05 2017 +0100
@@ -0,0 +1,15 @@
+#!/bin/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=
+EOF
+echo "topic=$(echo $(dirname $TESTDIR))/hgext3rd/topic" >> $HGRCPATH