Show More
@@ -1,18 +1,44 b'' | |||||
1 | #!/bin/sh |
|
1 | $ hg init | |
2 |
|
2 | |||
3 | hg init |
|
3 | $ echo a > a | |
|
4 | $ hg ci -Ama | |||
|
5 | adding a | |||
4 |
|
6 | |||
5 | echo a > a |
|
7 | $ hg an a | |
6 | hg ci -Ama |
|
8 | 0: a | |
7 |
|
9 | |||
8 | hg an a |
|
10 | $ echo "[ui]" >> $HGRCPATH | |
|
11 | $ echo "strict=True" >> $HGRCPATH | |||
9 |
|
12 | |||
10 | echo "[ui]" >> $HGRCPATH |
|
13 | $ hg an a | |
11 | echo "strict=True" >> $HGRCPATH |
|
14 | hg: unknown command 'an' | |
|
15 | Mercurial Distributed SCM | |||
|
16 | ||||
|
17 | basic commands: | |||
|
18 | ||||
|
19 | add add the specified files on the next commit | |||
|
20 | annotate show changeset information by line for each file | |||
|
21 | clone make a copy of an existing repository | |||
|
22 | commit commit the specified files or all outstanding changes | |||
|
23 | diff diff repository (or selected files) | |||
|
24 | export dump the header and diffs for one or more changesets | |||
|
25 | forget forget the specified files on the next commit | |||
|
26 | init create a new repository in the given directory | |||
|
27 | log show revision history of entire repository or files | |||
|
28 | merge merge working directory with another revision | |||
|
29 | pull pull changes from the specified source | |||
|
30 | push push changes to the specified destination | |||
|
31 | remove remove the specified files on the next commit | |||
|
32 | serve start stand-alone webserver | |||
|
33 | status show changed files in the working directory | |||
|
34 | summary summarize working directory state | |||
|
35 | update update working directory (or switch revisions) | |||
|
36 | ||||
|
37 | use "hg help" for the full list of commands or "hg -v" for details | |||
|
38 | $ hg annotate a | |||
|
39 | 0: a | |||
12 |
|
40 | |||
13 | hg an a |
|
41 | should succeed - up is an alias, not an abbreviation | |
14 | hg annotate a |
|
|||
15 |
|
42 | |||
16 | echo % should succeed - up is an alias, not an abbreviation |
|
43 | $ hg up | |
17 |
|
44 | 0 files updated, 0 files merged, 0 files removed, 0 files unresolved | ||
18 | hg up |
|
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed |
General Comments 0
You need to be logged in to leave comments.
Login now