Show More
@@ -112,7 +112,7 b' commit [-A -t -l <file> -m <text> -u <us' | |||||
112 | Options: |
|
112 | Options: | |
113 |
|
113 | |||
114 | -A, --addremove run addremove during commit |
|
114 | -A, --addremove run addremove during commit | |
115 |
-m, -- |
|
115 | -m, --message <text> use <text> as commit message | |
116 | -l, --logfile <file> show the commit message for the given file |
|
116 | -l, --logfile <file> show the commit message for the given file | |
117 | -d, --date <datecode> record datecode as commit date |
|
117 | -d, --date <datecode> record datecode as commit date | |
118 | -u, --user <user> record user as commiter |
|
118 | -u, --user <user> record user as commiter | |
@@ -358,7 +358,7 b' tag [-l -m <text> -d <datecode> -u <user' | |||||
358 |
|
358 | |||
359 | options: |
|
359 | options: | |
360 | -l, --local make the tag local |
|
360 | -l, --local make the tag local | |
361 |
-m, -- |
|
361 | -m, --message <text> message for tag commit log entry | |
362 | -d, --date <datecode> datecode for commit |
|
362 | -d, --date <datecode> datecode for commit | |
363 | -u, --user <user> user for commit |
|
363 | -u, --user <user> user for commit | |
364 |
|
364 |
@@ -460,7 +460,7 b' def clone(ui, source, dest=None, **opts)' | |||||
460 |
|
460 | |||
461 | def commit(ui, repo, *files, **opts): |
|
461 | def commit(ui, repo, *files, **opts): | |
462 | """commit the specified files or all outstanding changes""" |
|
462 | """commit the specified files or all outstanding changes""" | |
463 | text = opts['text'] |
|
463 | text = opts['message'] or opts['text'] | |
464 | logfile = opts['logfile'] |
|
464 | logfile = opts['logfile'] | |
465 | if not text and logfile: |
|
465 | if not text and logfile: | |
466 | try: |
|
466 | try: | |
@@ -1101,7 +1101,7 b' table = {' | |||||
1101 | "^commit|ci": |
|
1101 | "^commit|ci": | |
1102 | (commit, |
|
1102 | (commit, | |
1103 | [('A', 'addremove', None, 'run add/remove during commit'), |
|
1103 | [('A', 'addremove', None, 'run add/remove during commit'), | |
1104 |
('m', ' |
|
1104 | ('m', 'message', "", 'commit message'), | |
1105 | ('t', 'text', "", 'commit message (deprecated: use -m)'), |
|
1105 | ('t', 'text', "", 'commit message (deprecated: use -m)'), | |
1106 | ('l', 'logfile', "", 'commit text file'), |
|
1106 | ('l', 'logfile', "", 'commit text file'), | |
1107 | ('d', 'date', "", 'date code'), |
|
1107 | ('d', 'date', "", 'date code'), |
@@ -18,13 +18,13 b' writing tests:' | |||||
18 |
|
18 | |||
19 | - hg commit and hg up -m want user interaction |
|
19 | - hg commit and hg up -m want user interaction | |
20 |
|
20 | |||
21 |
for commit use - |
|
21 | for commit use -m "text" | |
22 | for hg up -m, set HGMERGE to something noninteractive (like true or merge) |
|
22 | for hg up -m, set HGMERGE to something noninteractive (like true or merge) | |
23 |
|
23 | |||
24 | - changeset hashes will change based on user and date which make |
|
24 | - changeset hashes will change based on user and date which make | |
25 | things like hg history output change |
|
25 | things like hg history output change | |
26 |
|
26 | |||
27 |
use commit - |
|
27 | use commit -m "test" -u test -d "0 0" | |
28 |
|
28 | |||
29 | - diff will show the current time |
|
29 | - diff will show the current time | |
30 |
|
30 |
@@ -6,7 +6,7 b' cd t' | |||||
6 | hg init |
|
6 | hg init | |
7 | echo a > a |
|
7 | echo a > a | |
8 | hg add a |
|
8 | hg add a | |
9 |
hg commit - |
|
9 | hg commit -m test -d "0 0" | |
10 | hg history |
|
10 | hg history | |
11 | hg manifest |
|
11 | hg manifest | |
12 | hg cat a |
|
12 | hg cat a |
@@ -3,7 +3,7 b'' | |||||
3 | + hg init |
|
3 | + hg init | |
4 | + echo a |
|
4 | + echo a | |
5 | + hg add a |
|
5 | + hg add a | |
6 |
+ hg commit - |
|
6 | + hg commit -m test -d '0 0' | |
7 | + hg history |
|
7 | + hg history | |
8 | changeset: 0:acb14030fe0a21b60322c440ad2d20cf7685a376 |
|
8 | changeset: 0:acb14030fe0a21b60322c440ad2d20cf7685a376 | |
9 | tag: tip |
|
9 | tag: tip |
General Comments 0
You need to be logged in to leave comments.
Login now