annotate rhodecode/tests/test_hg_operations.sh @ 809:7b18e7ca66da beta

extended hg push test script
author Marcin Kuzminski <marcin@python-works.com>
date Sun, 05 Dec 2010 03:00:42 +0100
parents 0142dac6f3c7
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
755
99ece4c484e1 Added basic test push/pull script
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
1 #!/bin/bash
99ece4c484e1 Added basic test push/pull script
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
2 repo=/tmp/vcs_test_hg_clone
790
0142dac6f3c7 fixed journal helper, little test update,
Marcin Kuzminski <marcin@python-works.com>
parents: 755
diff changeset
3 repo_name=vcs_test_hg
0142dac6f3c7 fixed journal helper, little test update,
Marcin Kuzminski <marcin@python-works.com>
parents: 755
diff changeset
4 user=test_admin
0142dac6f3c7 fixed journal helper, little test update,
Marcin Kuzminski <marcin@python-works.com>
parents: 755
diff changeset
5 password=test12
0142dac6f3c7 fixed journal helper, little test update,
Marcin Kuzminski <marcin@python-works.com>
parents: 755
diff changeset
6 echo 'removing repo '$repo
755
99ece4c484e1 Added basic test push/pull script
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
7 rm -rf '$repo'
790
0142dac6f3c7 fixed journal helper, little test update,
Marcin Kuzminski <marcin@python-works.com>
parents: 755
diff changeset
8 hg clone http://$user:$password@127.0.0.1:5000/$repo_name $repo
755
99ece4c484e1 Added basic test push/pull script
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
9 cd $repo
99ece4c484e1 Added basic test push/pull script
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
10 echo 'some' >> $repo/setup.py && hg ci -m 'ci1' && \
99ece4c484e1 Added basic test push/pull script
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
11 echo 'some' >> $repo/setup.py && hg ci -m 'ci2' && \
99ece4c484e1 Added basic test push/pull script
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
12 echo 'some' >> $repo/setup.py && hg ci -m 'ci3' && \
99ece4c484e1 Added basic test push/pull script
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
13 echo 'some' >> $repo/setup.py && hg ci -m 'ci4' && \
99ece4c484e1 Added basic test push/pull script
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
14 hg push
99ece4c484e1 Added basic test push/pull script
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
15
809
7b18e7ca66da extended hg push test script
Marcin Kuzminski <marcin@python-works.com>
parents: 790
diff changeset
16 echo 'new file' >> $repo/new_file.py
7b18e7ca66da extended hg push test script
Marcin Kuzminski <marcin@python-works.com>
parents: 790
diff changeset
17 hg add $repo/new_file.py
7b18e7ca66da extended hg push test script
Marcin Kuzminski <marcin@python-works.com>
parents: 790
diff changeset
18
7b18e7ca66da extended hg push test script
Marcin Kuzminski <marcin@python-works.com>
parents: 790
diff changeset
19 for i in {1..15}
7b18e7ca66da extended hg push test script
Marcin Kuzminski <marcin@python-works.com>
parents: 790
diff changeset
20 do
7b18e7ca66da extended hg push test script
Marcin Kuzminski <marcin@python-works.com>
parents: 790
diff changeset
21 echo "line $i" >> $repo/new_file.py && hg ci -m "autocommit $i"
7b18e7ca66da extended hg push test script
Marcin Kuzminski <marcin@python-works.com>
parents: 790
diff changeset
22 done
7b18e7ca66da extended hg push test script
Marcin Kuzminski <marcin@python-works.com>
parents: 790
diff changeset
23
7b18e7ca66da extended hg push test script
Marcin Kuzminski <marcin@python-works.com>
parents: 790
diff changeset
24 hg push