<commit_before>#!/bin/sh

# Testing merging and conflict resolution.

SVN_PROG=../svn
TEST_DIR_1=t1
TEST_DIR_2=t2
COMMIT_RESULTFILE_NAME=commit2
ANCESTOR_PATH=anni       # See if Greg Stein notices. :-) 

check_status()
{
    res=$?
    if [ $res -ne 0 ]; then
      echo Oops, problem: ${@-"(no further details)"}
      exit $res
    fi
    # REMOVE ME;  for easy debugging step-throughs:
    # read foo
}

# Remove the testing tree
rm -rf ${TEST_DIR_1} ${TEST_DIR_2} ${COMMIT_RESULTFILE_NAME}*

echo

##### Run tests: #####

### Checking out.
echo "Checking out ${TEST_DIR_1}."
${SVN_PROG} checkout                                      \
      --target-dir ${TEST_DIR_1}                          \
      --xml-file ../../tests-common/xml/co1-inline.xml    \
      --revision 1                                        \
      --ancestor-path ${ANCESTOR_PATH}

check_status 1

### Give t1/iota some file-properties via update.<commit_msg>*giggle*<commit_after>#!/bin/sh

# Testing merging and conflict resolution.

SVN_PROG=../svn
TEST_DIR_1=t1
TEST_DIR_2=t2
COMMIT_RESULTFILE_NAME=commit2
ANCESTOR_PATH=anni       # See if Greg Stein notices. :-) 

check_status()
{
    res=$?
    if [ $res -ne 0 ]; then
      echo Oops, problem: ${@-"(no further details)"}
      exit $res
    fi
    # REMOVE ME;  for easy debugging step-throughs:
    if test "`whoami 2> /dev/null`" = "sussman"; then
      read foo
    fi
}

# Remove the testing tree
rm -rf ${TEST_DIR_1} ${TEST_DIR_2} ${COMMIT_RESULTFILE_NAME}*

echo

##### Run tests: #####

### Checking out.
echo "Checking out ${TEST_DIR_1}."
${SVN_PROG} checkout                                      \
      --target-dir ${TEST_DIR_1}                          \
      --xml-file ../../tests-common/xml/co1-inline.xml    \
      --revision 1                                        \
      --ancestor-path ${ANCESTOR_PATH}

check_status 1

### Give t1/iota some file-properties via update.
{'fraction_non_alphanumeric': 0.13575129533678756, 'fraction_numerical': 0.015025906735751295, 'mean_word_length': 1.9845440494590418, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 6}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4722733', 'n_tokens_mistral': 680, 'n_tokens_neox': 647, 'n_words': 159}