# HG changeset patch # User Franz Glasner # Date 1580201440 -3600 # Node ID 5be08fa6b4baab2c27eec39f91383cea19c43976 # Parent eea4223c516334bf65eda7055d958e64bbfd45ba New setup methods for test repositories diff -r eea4223c5163 -r 5be08fa6b4ba tests/lib-test-timestamps.sh --- a/tests/lib-test-timestamps.sh Tue Jan 28 09:17:54 2020 +0100 +++ b/tests/lib-test-timestamps.sh Tue Jan 28 09:50:40 2020 +0100 @@ -165,7 +165,7 @@ # -# Prepare a bare repo +# Prepare a bare repo w/o any extension # # prepare_bare_repo REPO SHOW_OUTPUT # @@ -174,3 +174,25 @@ SHOW_OUTPUT="$2" hg init "$1" } + +# +# Prepare a minimal repo with just timestamps, shelve and rebase +# +# prepare_mini_repo REPO SHOW_OUTPUT +# +prepare_mini_repo() { + _check_environment || return 1 + SHOW_OUTPUT="$2" + hg init "$1" + cd "$1" + touch .hgtimestamps + cat >>$LOCAL_HGRCPATH <