Mercurial > hg
changeset 1043:9344f5dd4488
Update tests
author | mpm@selenic.com |
---|---|
date | Wed, 24 Aug 2005 19:19:35 -0700 |
parents | 23f9d71ab9ae |
children | 4bfa960f8d2a 34be48b4ca85 |
files | tests/test-copy tests/test-copy.out tests/test-filebranch.out tests/test-flags.out tests/test-merge6.out tests/test-push-warn.out tests/test-unrelated-pull.out |
diffstat | 7 files changed, 55 insertions(+), 17 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/test-copy Wed Aug 24 19:16:45 2005 -0700 +++ b/tests/test-copy Wed Aug 24 19:19:35 2005 -0700 @@ -9,8 +9,20 @@ hg copy a b hg status hg --debug commit -m "2" -d "0 0" -hg history +echo "we should see two history entries" +hg history -v +echo "we should see one log entry for a" hg log a +echo "this should show a revision linked to changeset 0" +hg debugindex .hg/data/a.i +echo "we should see one log entry for b" +hg log b +echo "this should show a revision linked to changeset 1" +hg debugindex .hg/data/b.i + +echo "this should show the rename information in the metadata" +hg debugdata .hg/data/b.d 0 | head -n 3 | tail -n 2 + md5sum .hg/data/b.d hg cat b > bsum md5sum bsum
--- a/tests/test-copy.out Wed Aug 24 19:16:45 2005 -0700 +++ b/tests/test-copy.out Wed Aug 24 19:19:35 2005 -0700 @@ -1,22 +1,48 @@ A b b b: copy a:b789fdd96dc2f3bd229c1dd8eedf0fc60e2b68e3 +we should see two history entries +changeset: 1:3b5b84850bbed12e8ff8c1b87b32dc93c59ae6d8 +tag: tip +user: test +date: Thu Jan 1 00:00:00 1970 +0000 +files: b +description: +2 + + +changeset: 0:c19d34741b0a4ced8e4ba74bb834597d5193851e +user: test +date: Thu Jan 1 00:00:00 1970 +0000 +files: a +description: +1 + + +we should see one log entry for a +filelog +changeset: 0:c19d34741b0a +user: test +date: Thu Jan 1 00:00:00 1970 +0000 +summary: 1 + +this should show a revision linked to changeset 0 + rev offset length base linkrev nodeid p1 p2 + 0 0 3 0 0 b789fdd96dc2 000000000000 000000000000 +we should see one log entry for b +filelog changeset: 1:3b5b84850bbe tag: tip user: test date: Thu Jan 1 00:00:00 1970 +0000 summary: 2 -changeset: 0:c19d34741b0a -user: test -date: Thu Jan 1 00:00:00 1970 +0000 -summary: 1 - -changeset: 0:c19d34741b0a -user: test -date: Thu Jan 1 00:00:00 1970 +0000 -summary: 1 - +this should show a revision linked to changeset 1 + rev offset length base linkrev nodeid p1 p2 + 0 0 65 0 1 9a263dd772e0 000000000000 000000000000 +this should show the rename information in the metadata +copyrev: b789fdd96dc2f3bd229c1dd8eedf0fc60e2b68e3 +copy: a 566e338d09a089ba737c21e0d3759980 .hg/data/b.d 60b725f10c9c85c70d97880dfe8191b3 bsum 60b725f10c9c85c70d97880dfe8191b3 asum
--- a/tests/test-filebranch.out Wed Aug 24 19:16:45 2005 -0700 +++ b/tests/test-filebranch.out Wed Aug 24 19:19:35 2005 -0700 @@ -12,7 +12,7 @@ adding changesets adding manifests adding file changes -added 1 changesets with 2 changes to 2 files +added 1 changesets with 2 changes to 2 files (+1 heads) (run 'hg update' to get a working copy) merging for foo resolving manifests
--- a/tests/test-flags.out Wed Aug 24 19:16:45 2005 -0700 +++ b/tests/test-flags.out Wed Aug 24 19:19:35 2005 -0700 @@ -10,7 +10,7 @@ adding changesets adding manifests adding file changes -added 1 changesets with 1 changes to 1 files +added 1 changesets with 1 changes to 1 files (+1 heads) (run 'hg update' to get a working copy) changeset: 2:3ef543305655 tag: tip
--- a/tests/test-merge6.out Wed Aug 24 19:16:45 2005 -0700 +++ b/tests/test-merge6.out Wed Aug 24 19:19:35 2005 -0700 @@ -3,7 +3,7 @@ adding changesets adding manifests adding file changes -added 1 changesets with 1 changes to 1 files +added 1 changesets with 1 changes to 1 files (+1 heads) (run 'hg update' to get a working copy) bar should remain deleted. f9b0e817f6a48de3564c6b2957687c5e7297c5a0 644 foo @@ -12,7 +12,7 @@ adding changesets adding manifests adding file changes -added 1 changesets with 0 changes to 0 files +added 1 changesets with 0 changes to 0 files (+1 heads) (run 'hg update' to get a working copy) bar should remain deleted. f9b0e817f6a48de3564c6b2957687c5e7297c5a0 644 foo
--- a/tests/test-push-warn.out Wed Aug 24 19:16:45 2005 -0700 +++ b/tests/test-push-warn.out Wed Aug 24 19:19:35 2005 -0700 @@ -7,7 +7,7 @@ adding changesets adding manifests adding file changes -added 1 changesets with 1 changes to 1 files +added 1 changesets with 1 changes to 1 files (+1 heads) (run 'hg update' to get a working copy) pushing to ../a searching for changes
--- a/tests/test-unrelated-pull.out Wed Aug 24 19:16:45 2005 -0700 +++ b/tests/test-unrelated-pull.out Wed Aug 24 19:19:35 2005 -0700 @@ -4,7 +4,7 @@ adding changesets adding manifests adding file changes -added 1 changesets with 1 changes to 1 files +added 1 changesets with 1 changes to 1 files (+1 heads) (run 'hg update' to get a working copy) changeset: 1:9a79c33a9db3 tag: tip