Expand test-commit to cover one of the recent bugs.
authorGiorgos Keramidas <keramida@ceid.upatras.gr>
Wed, 22 Nov 2006 00:53:56 +0200
changeset 3709 38291d9c8c1c
parent 3708 1debe70db9d7
child 3710 91690473856c
Expand test-commit to cover one of the recent bugs.
tests/test-commit
tests/test-commit.out
--- a/tests/test-commit	Wed Nov 22 23:07:15 2006 +0100
+++ b/tests/test-commit	Wed Nov 22 00:53:56 2006 +0200
@@ -1,5 +1,6 @@
 #!/bin/sh
 
+echo % commit date test
 hg init test
 cd test
 echo foo > foo
@@ -12,8 +13,29 @@
 hg commit -d ' 1 4444' -m commit-6
 hg commit -d '111111111111 0' -m commit-7
 
+echo % partial commit test
 echo bar > bar
 hg add bar
 rm bar
 hg commit -d "1000000 0" -m commit-8 2>&1 | sed -e "s:/.*\(/test/.*\):...\1:"
+cd ..
+
+echo % partial subdir commit test
+hg init test2
+cd test2
+mkdir foo
+echo foo > foo/foo
+mkdir bar
+echo bar > bar/bar
+hg add
+hg ci -d '1000000 0' -u test -m commit-subdir-1 foo
+hg ci -d '1000001 0' -u test -m commit-subdir-2 bar
+echo % subdir log 1
+hg log -v foo
+echo % subdir log 2
+hg log -v bar
+echo % full log
+hg log -v
+cd ..
+
 exit 0
--- a/tests/test-commit.out	Wed Nov 22 23:07:15 2006 +0100
+++ b/tests/test-commit.out	Wed Nov 22 00:53:56 2006 +0200
@@ -1,3 +1,4 @@
+% commit date test
 abort: impossible time zone offset: 4444444
 transaction abort!
 rollback completed
@@ -13,5 +14,46 @@
 abort: date exceeds 32 bits: 111111111111
 transaction abort!
 rollback completed
+% partial commit test
 trouble committing bar!
 abort: No such file or directory: .../test/bar
+% partial subdir commit test
+adding bar/bar
+adding foo/foo
+% subdir log 1
+changeset:   0:6ef3cb06bb80
+user:        test
+date:        Mon Jan 12 13:46:40 1970 +0000
+files:       foo/foo
+description:
+commit-subdir-1
+
+
+% subdir log 2
+changeset:   1:f2e51572cf5a
+tag:         tip
+user:        test
+date:        Mon Jan 12 13:46:41 1970 +0000
+files:       bar/bar
+description:
+commit-subdir-2
+
+
+% full log
+changeset:   1:f2e51572cf5a
+tag:         tip
+user:        test
+date:        Mon Jan 12 13:46:41 1970 +0000
+files:       bar/bar
+description:
+commit-subdir-2
+
+
+changeset:   0:6ef3cb06bb80
+user:        test
+date:        Mon Jan 12 13:46:40 1970 +0000
+files:       foo/foo
+description:
+commit-subdir-1
+
+