comparison tests/test-commit @ 3709:38291d9c8c1c

Expand test-commit to cover one of the recent bugs.
author Giorgos Keramidas <keramida@ceid.upatras.gr>
date Wed, 22 Nov 2006 00:53:56 +0200
parents 7544700fd931
children 8d603f8567ae
comparison
equal deleted inserted replaced
3708:1debe70db9d7 3709:38291d9c8c1c
1 #!/bin/sh 1 #!/bin/sh
2 2
3 echo % commit date test
3 hg init test 4 hg init test
4 cd test 5 cd test
5 echo foo > foo 6 echo foo > foo
6 hg add foo 7 hg add foo
7 hg commit -d '0 0' -m commit-1 8 hg commit -d '0 0' -m commit-1
10 hg commit -d '1 15.1' -m commit-4 11 hg commit -d '1 15.1' -m commit-4
11 hg commit -d 'foo bar' -m commit-5 12 hg commit -d 'foo bar' -m commit-5
12 hg commit -d ' 1 4444' -m commit-6 13 hg commit -d ' 1 4444' -m commit-6
13 hg commit -d '111111111111 0' -m commit-7 14 hg commit -d '111111111111 0' -m commit-7
14 15
16 echo % partial commit test
15 echo bar > bar 17 echo bar > bar
16 hg add bar 18 hg add bar
17 rm bar 19 rm bar
18 hg commit -d "1000000 0" -m commit-8 2>&1 | sed -e "s:/.*\(/test/.*\):...\1:" 20 hg commit -d "1000000 0" -m commit-8 2>&1 | sed -e "s:/.*\(/test/.*\):...\1:"
21 cd ..
22
23 echo % partial subdir commit test
24 hg init test2
25 cd test2
26 mkdir foo
27 echo foo > foo/foo
28 mkdir bar
29 echo bar > bar/bar
30 hg add
31 hg ci -d '1000000 0' -u test -m commit-subdir-1 foo
32 hg ci -d '1000001 0' -u test -m commit-subdir-2 bar
33 echo % subdir log 1
34 hg log -v foo
35 echo % subdir log 2
36 hg log -v bar
37 echo % full log
38 hg log -v
39 cd ..
40
19 exit 0 41 exit 0