Show More
@@ -27,4 +27,25 b' hg -q help status' | |||
|
27 | 27 | hg help foo |
|
28 | 28 | hg skjdfks |
|
29 | 29 | |
|
30 | cat > helpext.py <<EOF | |
|
31 | import os | |
|
32 | from mercurial import commands | |
|
33 | ||
|
34 | def nohelp(ui, *args, **kwargs): | |
|
35 | pass | |
|
36 | ||
|
37 | cmdtable = { | |
|
38 | "nohelp": (nohelp, [], "hg nohelp"), | |
|
39 | } | |
|
40 | ||
|
41 | commands.norepo += ' nohelp' | |
|
42 | EOF | |
|
43 | abspath=`pwd`/helpext.py | |
|
44 | ||
|
45 | echo '[extensions]' >> $HGRCPATH | |
|
46 | echo "helpext = $abspath" >> $HGRCPATH | |
|
47 | ||
|
48 | echo %% test command with no help text | |
|
49 | hg help nohelp | |
|
50 | ||
|
30 | 51 | exit 0 |
General Comments 0
You need to be logged in to leave comments.
Login now