Show More
@@ -50,7 +50,7 b'' | |||
|
50 | 50 | |
|
51 | 51 | from mercurial.i18n import _ |
|
52 | 52 | from mercurial.node import * |
|
53 | from mercurial import cmdutil, util | |
|
53 | from mercurial import cmdutil, util, commands | |
|
54 | 54 | import os, shutil, tempfile |
|
55 | 55 | |
|
56 | 56 | |
@@ -181,8 +181,7 b' cmdtable = {' | |||
|
181 | 181 | [('p', 'program', '', _('comparison program to run')), |
|
182 | 182 | ('o', 'option', [], _('pass option to comparison program')), |
|
183 | 183 | ('r', 'rev', [], _('revision')), |
|
184 | ('I', 'include', [], _('include names matching the given patterns')), | |
|
185 | ('X', 'exclude', [], _('exclude names matching the given patterns'))], | |
|
184 | ] + commands.walkopts, | |
|
186 | 185 | _('hg extdiff [OPT]... [FILE]...')), |
|
187 | 186 | } |
|
188 | 187 |
@@ -86,13 +86,8 b" def fetch(ui, repo, source='default', **" | |||
|
86 | 86 | cmdtable = { |
|
87 | 87 | 'fetch': |
|
88 | 88 | (fetch, |
|
89 |
[(' |
|
|
90 | ('m', 'message', '', _('use <text> as commit message')), | |
|
91 | ('l', 'logfile', '', _('read the commit message from <file>')), | |
|
92 | ('d', 'date', '', _('record datecode as commit date')), | |
|
93 | ('u', 'user', '', _('record user as commiter')), | |
|
94 | ('r', 'rev', [], _('a specific revision you would like to pull')), | |
|
89 | [('r', 'rev', [], _('a specific revision you would like to pull')), | |
|
95 | 90 | ('f', 'force-editor', None, _('edit commit message')), |
|
96 | ('', 'remotecmd', '', _('hg command to run on the remote side'))], | |
|
91 | ] + commands.commitopts + commands.commitopts2 + commands.remoteopts, | |
|
97 | 92 | _('hg fetch [SOURCE]')), |
|
98 | 93 | } |
@@ -6,7 +6,7 b'' | |||
|
6 | 6 | # of the GNU General Public License, incorporated herein by reference. |
|
7 | 7 | |
|
8 | 8 | import os, tempfile, binascii |
|
9 | from mercurial import util | |
|
9 | from mercurial import util, commands | |
|
10 | 10 | from mercurial import node as hgnode |
|
11 | 11 | from mercurial.i18n import _ |
|
12 | 12 | |
@@ -269,10 +269,9 b' cmdtable = {' | |||
|
269 | 269 | [('l', 'local', None, _('make the signature local')), |
|
270 | 270 | ('f', 'force', None, _('sign even if the sigfile is modified')), |
|
271 | 271 | ('', 'no-commit', None, _('do not commit the sigfile after signing')), |
|
272 | ('k', 'key', '', _('the key id to sign with')), | |
|
272 | 273 | ('m', 'message', '', _('commit message')), |
|
273 | ('d', 'date', '', _('date code')), | |
|
274 | ('u', 'user', '', _('user')), | |
|
275 | ('k', 'key', '', _('the key id to sign with'))], | |
|
274 | ] + commands.commitopts2, | |
|
276 | 275 | _('hg sign [OPTION]... [REVISION]...')), |
|
277 | 276 | "sigcheck": (check, [], _('hg sigcheck REVISION')), |
|
278 | 277 | "sigs": (sigs, [], _('hg sigs')), |
@@ -2131,10 +2131,8 b' cmdtable = {' | |||
|
2131 | 2131 | ('U', 'noupdate', None, _('do not update the new working directories')), |
|
2132 | 2132 | ('', 'uncompressed', None, |
|
2133 | 2133 | _('use uncompressed transfer (fast over LAN)')), |
|
2134 | ('e', 'ssh', '', _('specify ssh command to use')), | |
|
2135 | 2134 | ('p', 'patches', '', _('location of source patch repo')), |
|
2136 | ('', 'remotecmd', '', | |
|
2137 | _('specify hg command to run on the remote side'))], | |
|
2135 | ] + commands.remoteopts, | |
|
2138 | 2136 | _('hg qclone [OPTION]... SOURCE [DEST]')), |
|
2139 | 2137 | "qcommit|qci": |
|
2140 | 2138 | (commit, |
@@ -2143,8 +2141,7 b' cmdtable = {' | |||
|
2143 | 2141 | "^qdiff": |
|
2144 | 2142 | (diff, |
|
2145 | 2143 | [('g', 'git', None, _('use git extended diff format')), |
|
2146 | ('I', 'include', [], _('include names matching the given patterns')), | |
|
2147 | ('X', 'exclude', [], _('exclude names matching the given patterns'))], | |
|
2144 | ] + commands.walkopts, | |
|
2148 | 2145 | _('hg qdiff [-I] [-X] [-g] [FILE]...')), |
|
2149 | 2146 | "qdelete|qremove|qrm": |
|
2150 | 2147 | (delete, |
@@ -2184,9 +2181,7 b' cmdtable = {' | |||
|
2184 | 2181 | [('e', 'edit', None, _('edit commit message')), |
|
2185 | 2182 | ('f', 'force', None, _('import uncommitted changes into patch')), |
|
2186 | 2183 | ('g', 'git', None, _('use git extended diff format')), |
|
2187 | ('I', 'include', [], _('include names matching the given patterns')), | |
|
2188 | ('X', 'exclude', [], _('exclude names matching the given patterns')), | |
|
2189 | ] + commands.commitopts, | |
|
2184 | ] + commands.walkopts + commands.commitopts, | |
|
2190 | 2185 | _('hg qnew [-e] [-m TEXT] [-l FILE] [-f] PATCH [FILE]...')), |
|
2191 | 2186 | "qnext": (next, [] + seriesopts, _('hg qnext [-s]')), |
|
2192 | 2187 | "qprev": (prev, [] + seriesopts, _('hg qprev [-s]')), |
@@ -2209,9 +2204,7 b' cmdtable = {' | |||
|
2209 | 2204 | [('e', 'edit', None, _('edit commit message')), |
|
2210 | 2205 | ('g', 'git', None, _('use git extended diff format')), |
|
2211 | 2206 | ('s', 'short', None, _('refresh only files already in the patch')), |
|
2212 | ('I', 'include', [], _('include names matching the given patterns')), | |
|
2213 | ('X', 'exclude', [], _('exclude names matching the given patterns')), | |
|
2214 | ] + commands.commitopts, | |
|
2207 | ] + commands.walkopts + commands.commitopts, | |
|
2215 | 2208 | _('hg qrefresh [-I] [-X] [-e] [-m TEXT] [-l FILE] [-s] [FILE]...')), |
|
2216 | 2209 | 'qrename|qmv': |
|
2217 | 2210 | (rename, [], _('hg qrename PATCH1 [PATCH2]')), |
@@ -27,7 +27,7 b'' | |||
|
27 | 27 | # along with this program; if not, write to the Free Software |
|
28 | 28 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
|
29 | 29 | |
|
30 | from mercurial import hg, util | |
|
30 | from mercurial import hg, util, commands | |
|
31 | 31 | from mercurial.i18n import _ |
|
32 | 32 | import os |
|
33 | 33 | |
@@ -162,7 +162,6 b' cmdtable = {' | |||
|
162 | 162 | ('p', 'print', None, _('print the file names instead of deleting them')), |
|
163 | 163 | ('0', 'print0', None, _('end filenames with NUL, for use with xargs' |
|
164 | 164 | ' (implies -p)')), |
|
165 | ('I', 'include', [], _('include names matching the given patterns')), | |
|
166 | ('X', 'exclude', [], _('exclude names matching the given patterns'))], | |
|
165 | ] + commands.walkopts, | |
|
167 | 166 | _('hg purge [OPTION]... [DIR]...')) |
|
168 | 167 | } |
@@ -375,8 +375,6 b' cmdtable = {' | |||
|
375 | 375 | (record, |
|
376 | 376 | [('A', 'addremove', None, |
|
377 | 377 | _('mark new/missing files as added/removed before committing')), |
|
378 | ('d', 'date', '', _('record datecode as commit date')), | |
|
379 | ('u', 'user', '', _('record user as commiter')), | |
|
380 | ] + commands.walkopts + commands.commitopts, | |
|
378 | ] + commands.walkopts + commands.commitopts + commands.commitopts2, | |
|
381 | 379 | _('hg record [OPTION]... [FILE]...')), |
|
382 | 380 | } |
@@ -2751,6 +2751,11 b' commitopts = [' | |||
|
2751 | 2751 | ('l', 'logfile', '', _('read commit message from <file>')), |
|
2752 | 2752 | ] |
|
2753 | 2753 | |
|
2754 | commitopts2 = [ | |
|
2755 | ('d', 'date', '', _('record datecode as commit date')), | |
|
2756 | ('u', 'user', '', _('record user as committer')), | |
|
2757 | ] | |
|
2758 | ||
|
2754 | 2759 | table = { |
|
2755 | 2760 | "^add": (add, walkopts + dryrunopts, _('hg add [OPTION]... [FILE]...')), |
|
2756 | 2761 | "addremove": |
@@ -2784,11 +2789,9 b' table = {' | |||
|
2784 | 2789 | (backout, |
|
2785 | 2790 | [('', 'merge', None, |
|
2786 | 2791 | _('merge with old dirstate parent after backout')), |
|
2787 | ('d', 'date', '', _('record datecode as commit date')), | |
|
2788 | 2792 | ('', 'parent', '', _('parent to choose when backing out merge')), |
|
2789 | ('u', 'user', '', _('record user as committer')), | |
|
2790 | 2793 | ('r', 'rev', '', _('revision to backout')), |
|
2791 | ] + walkopts + commitopts, | |
|
2794 | ] + walkopts + commitopts + commitopts2, | |
|
2792 | 2795 | _('hg backout [OPTION]... [-r] REV')), |
|
2793 | 2796 | "branch": |
|
2794 | 2797 | (branch, |
@@ -2830,9 +2833,7 b' table = {' | |||
|
2830 | 2833 | (commit, |
|
2831 | 2834 | [('A', 'addremove', None, |
|
2832 | 2835 | _('mark new/missing files as added/removed before committing')), |
|
2833 | ('d', 'date', '', _('record datecode as commit date')), | |
|
2834 | ('u', 'user', '', _('record user as commiter')), | |
|
2835 | ] + walkopts + commitopts, | |
|
2836 | ] + walkopts + commitopts + commitopts2, | |
|
2836 | 2837 | _('hg commit [OPTION]... [FILE]...')), |
|
2837 | 2838 | "copy|cp": |
|
2838 | 2839 | (copy, |
@@ -3022,10 +3023,8 b' table = {' | |||
|
3022 | 3023 | "debugrawcommit|rawcommit": |
|
3023 | 3024 | (rawcommit, |
|
3024 | 3025 | [('p', 'parent', [], _('parent')), |
|
3025 | ('d', 'date', '', _('date code')), | |
|
3026 | ('u', 'user', '', _('user')), | |
|
3027 | 3026 | ('F', 'files', '', _('file list')) |
|
3028 | ] + commitopts, | |
|
3027 | ] + commitopts + commitopts2, | |
|
3029 | 3028 | _('hg debugrawcommit [OPTION]... [FILE]...')), |
|
3030 | 3029 | "recover": (recover, [], _('hg recover')), |
|
3031 | 3030 | "^remove|rm": |
@@ -3095,11 +3094,11 b' table = {' | |||
|
3095 | 3094 | (tag, |
|
3096 | 3095 | [('f', 'force', None, _('replace existing tag')), |
|
3097 | 3096 | ('l', 'local', None, _('make the tag local')), |
|
3098 | ('m', 'message', '', _('message for tag commit log entry')), | |
|
3099 | ('d', 'date', '', _('record datecode as commit date')), | |
|
3100 | ('u', 'user', '', _('record user as commiter')), | |
|
3101 | 3097 | ('r', 'rev', '', _('revision to tag')), |
|
3102 |
('', 'remove', None, _('remove a tag')) |
|
|
3098 | ('', 'remove', None, _('remove a tag')), | |
|
3099 | # -l/--local is already there, commitopts cannot be used | |
|
3100 | ('m', 'message', '', _('use <text> as commit message')), | |
|
3101 | ] + commitopts2, | |
|
3103 | 3102 | _('hg tag [-l] [-m TEXT] [-d DATE] [-u USER] [-r REV] NAME')), |
|
3104 | 3103 | "tags": (tags, [], _('hg tags')), |
|
3105 | 3104 | "tip": |
@@ -6,12 +6,12 b' interactively select changes to commit' | |||
|
6 | 6 | options: |
|
7 | 7 | |
|
8 | 8 | -A --addremove mark new/missing files as added/removed before committing |
|
9 | -d --date record datecode as commit date | |
|
10 | -u --user record user as commiter | |
|
11 | 9 | -I --include include names matching the given patterns |
|
12 | 10 | -X --exclude exclude names matching the given patterns |
|
13 | 11 | -m --message use <text> as commit message |
|
14 | 12 | -l --logfile read commit message from <file> |
|
13 | -d --date record datecode as commit date | |
|
14 | -u --user record user as committer | |
|
15 | 15 | |
|
16 | 16 | use "hg -v help record" to show global options |
|
17 | 17 | % select no files |
General Comments 0
You need to be logged in to leave comments.
Login now