test_hg_operations.sh
23 lines
| 593 B
| application/x-sh
|
BashLexer
r755 | #!/bin/bash | ||
repo=/tmp/vcs_test_hg_clone | |||
r790 | repo_name=vcs_test_hg | ||
user=test_admin | |||
password=test12 | |||
echo 'removing repo '$repo | |||
r755 | rm -rf '$repo' | ||
r790 | hg clone http://$user:$password@127.0.0.1:5000/$repo_name $repo | ||
r755 | cd $repo | ||
echo 'some' >> $repo/setup.py && hg ci -m 'ci1' && \ | |||
echo 'some' >> $repo/setup.py && hg ci -m 'ci2' && \ | |||
echo 'some' >> $repo/setup.py && hg ci -m 'ci3' && \ | |||
echo 'some' >> $repo/setup.py && hg ci -m 'ci4' && \ | |||
hg push | |||
r809 | echo 'new file' >> $repo/new_file.py | ||
hg add $repo/new_file.py | |||
for i in {1..15} | |||
do | |||
echo "line $i" >> $repo/new_file.py && hg ci -m "autocommit $i" | |||
done | |||
hg push |