##// END OF EJS Templates
qrecord: provide help when mq is not enabled
timeless -
r13936:f4e4faa9 default
parent child Browse files
Show More
@@ -535,6 +535,9 b' cmdtable = {'
535 535 "record":
536 536 (record, commands.table['^commit|ci'][1], # same options as commit
537 537 _('hg record [OPTION]... [FILE]...')),
538 "qrecord":
539 (qrecord, {}, # placeholder until mq is available
540 _('hg qrecord [OPTION]... PATCH [FILE]...')),
538 541 }
539 542
540 543
@@ -10,6 +10,15 b' help record (no record)'
10 10
11 11 use "hg help extensions" for information on enabling extensions
12 12
13 help qrecord (no record)
14
15 $ hg help qrecord
16 'qrecord' is provided by the following extension:
17
18 record commands to interactively select changes for commit/qrefresh
19
20 use "hg help extensions" for information on enabling extensions
21
13 22 $ echo "[extensions]" >> $HGRCPATH
14 23 $ echo "record=" >> $HGRCPATH
15 24
@@ -63,30 +72,33 b' help record (record)'
63 72 help (no mq, so no qrecord)
64 73
65 74 $ hg help qrecord
66 hg: unknown command 'qrecord'
67 Mercurial Distributed SCM
75 hg qrecord [OPTION]... PATCH [FILE]...
68 76
69 basic commands:
77 interactively record a new patch
78
79 See "hg help qnew" & "hg help record" for more information and usage.
70 80
71 add add the specified files on the next commit
72 annotate show changeset information by line for each file
73 clone make a copy of an existing repository
74 commit commit the specified files or all outstanding changes
75 diff diff repository (or selected files)
76 export dump the header and diffs for one or more changesets
77 forget forget the specified files on the next commit
78 init create a new repository in the given directory
79 log show revision history of entire repository or files
80 merge merge working directory with another revision
81 pull pull changes from the specified source
82 push push changes to the specified destination
83 remove remove the specified files on the next commit
84 serve start stand-alone webserver
85 status show changed files in the working directory
86 summary summarize working directory state
87 update update working directory (or switch revisions)
81 use "hg -v help qrecord" to show global options
82
83 $ hg init a
84
85 qrecord (mq not present)
86
87 $ hg -R a qrecord
88 hg qrecord: invalid arguments
89 hg qrecord [OPTION]... PATCH [FILE]...
88 90
89 use "hg help" for the full list of commands or "hg -v" for details
91 interactively record a new patch
92
93 See "hg help qnew" & "hg help record" for more information and usage.
94
95 use "hg -v help qrecord" to show global options
96 [255]
97
98 qrecord patch (mq not present)
99
100 $ hg -R a qrecord patch
101 abort: 'mq' extension not loaded
90 102 [255]
91 103
92 104 help (mq present)
@@ -116,7 +128,6 b' help (mq present)'
116 128
117 129 use "hg -v help qrecord" to show global options
118 130
119 $ hg init a
120 131 $ cd a
121 132
122 133 Base commit
General Comments 0
You need to be logged in to leave comments. Login now