##// END OF EJS Templates
Add some more tests...
mpm@selenic.com -
r336:aa6cbde0 default
parent child Browse files
Show More
@@ -0,0 +1,24
1 #!/bin/bash
2
3 set -e
4
5 mkdir test
6 cd test
7 echo foo>foo
8 hg init
9 hg addremove
10 hg commit -t "1"
11 hg verify
12 hg serve 2>/dev/null &
13 C=$!
14 cd ..
15
16 mkdir copy
17 cd copy
18 hg init http://localhost:8000/
19 hg verify
20 hg co
21 cat foo
22 hg manifest
23
24 kill $C
@@ -0,0 +1,18
1 checking changesets
2 checking manifests
3 crosschecking files in changesets and manifests
4 checking files
5 1 files, 1 changesets, 1 total revisions
6 requesting all changes
7 adding changesets
8 adding manifests
9 adding file revisions
10 modified 1 files, added 1 changesets and 1 new revisions
11 checking changesets
12 checking manifests
13 crosschecking files in changesets and manifests
14 checking files
15 1 files, 1 changesets, 1 total revisions
16 foo
17 2ed2a3912a0b24502043eae84ee4b279c18b90dd 644 foo
18 killed!
@@ -0,0 +1,16
1 #!/bin/bash
2
3 set -x
4 mkdir t
5 cd t
6 hg init
7 echo a > a
8 hg add a
9 hg commit -t "test" -u test -d "0 0"
10 hg verify
11 hg parents
12 hg status
13 hg undo
14 hg verify
15 hg parents
16 hg status
@@ -0,0 +1,30
1 + mkdir t
2 + cd t
3 + hg init
4 + echo a
5 + hg add a
6 + hg commit -t test -u test -d '0 0'
7 + hg verify
8 checking changesets
9 checking manifests
10 crosschecking files in changesets and manifests
11 checking files
12 1 files, 1 changesets, 1 total revisions
13 + hg parents
14 changeset: 0:acb14030fe0a21b60322c440ad2d20cf7685a376
15 user: test
16 date: Wed Dec 31 16:00:00 1969
17 summary: test
18
19 + hg status
20 + hg undo
21 attempting to rollback last transaction
22 + hg verify
23 checking changesets
24 checking manifests
25 crosschecking files in changesets and manifests
26 checking files
27 0 files, 0 changesets, 0 total revisions
28 + hg parents
29 + hg status
30 A a
@@ -1,9 +1,11
1 1 #!/bin/bash
2 2
3 3 set -x
4 4
5 5 hg help
6 6 hg add -h
7 7 hg help diff
8 8 hg help foo
9 hg commands
9 10
11 exit 0 No newline at end of file
@@ -1,45 +1,78
1 1 + hg help
2 2 hg commands:
3 3
4 4 add add the specified files on the next commit
5 5 addremove add all new files, delete all missing files
6 6 annotate show changeset information per file line
7 7 cat output the latest or given revision of a file
8 8 commit commit the specified files or all outstanding changes
9 9 diff diff working directory (or selected files)
10 10 export dump the changeset header and diffs for a revision
11 11 forget don't add the specified files on the next commit
12 12 heads show current repository heads
13 13 help show help for a given command or all commands
14 14 history show the changelog history
15 15 init create a new repository or copy an existing one
16 16 log show the revision history of a single file
17 17 manifest output the latest or given revision of the project manifest
18 18 parents show the parents of the current working dir
19 19 patch import an ordered set of patches
20 20 pull pull changes from the specified source
21 21 push push changes to the specified destination
22 22 rawcommit raw commit interface
23 23 recover roll back an interrupted transaction
24 24 remove remove the specified files on the next commit
25 25 serve export the repository via HTTP
26 26 status show changed files in the working directory
27 27 tags list repository tags
28 28 tip show the tip revision
29 29 undo undo the last transaction
30 30 update update or merge working directory
31 31 verify verify the integrity of the repository
32 32 + hg add -h
33 33 hg add: option -h not recognized
34 34 hg add [files]
35 35
36 36 add the specified files on the next commit
37 37 + hg help diff
38 38 hg diff [-r A] [-r B] [files]
39 39
40 40 -r --rev
41 41 revision
42 42
43 43 diff working directory (or selected files)
44 44 + hg help foo
45 45 hg: unknown command foo
46 + hg commands
47 hg: unknown command 'commands'
48 hg commands:
49
50 add add the specified files on the next commit
51 addremove add all new files, delete all missing files
52 annotate show changeset information per file line
53 cat output the latest or given revision of a file
54 commit commit the specified files or all outstanding changes
55 diff diff working directory (or selected files)
56 export dump the changeset header and diffs for a revision
57 forget don't add the specified files on the next commit
58 heads show current repository heads
59 help show help for a given command or all commands
60 history show the changelog history
61 init create a new repository or copy an existing one
62 log show the revision history of a single file
63 manifest output the latest or given revision of the project manifest
64 parents show the parents of the current working dir
65 patch import an ordered set of patches
66 pull pull changes from the specified source
67 push push changes to the specified destination
68 rawcommit raw commit interface
69 recover roll back an interrupted transaction
70 remove remove the specified files on the next commit
71 serve export the repository via HTTP
72 status show changed files in the working directory
73 tags list repository tags
74 tip show the tip revision
75 undo undo the last transaction
76 update update or merge working directory
77 verify verify the integrity of the repository
78 + exit 0
General Comments 0
You need to be logged in to leave comments. Login now