Show More
@@ -0,0 +1,24 b'' | |||||
|
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 b'' | |||||
|
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 b'' | |||||
|
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 b'' | |||||
|
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 |
@@ -6,4 +6,6 b' hg help' | |||||
6 | hg add -h |
|
6 | hg add -h | |
7 | hg help diff |
|
7 | hg help diff | |
8 | hg help foo |
|
8 | hg help foo | |
|
9 | hg commands | |||
9 |
|
10 | |||
|
11 | exit 0 No newline at end of file |
@@ -43,3 +43,36 b' hg diff [-r A] [-r B] [files]' | |||||
43 | diff working directory (or selected files) |
|
43 | diff working directory (or selected files) | |
44 | + hg help foo |
|
44 | + hg help foo | |
45 | hg: unknown command foo |
|
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