##// END OF EJS Templates
dispatch: don't show list of commands on bogus command...
Martin von Zweigbergk -
r38823:5199c5b6 default
parent child Browse files
Show More
@@ -394,9 +394,8 b' def _callcatch(ui, func):'
394 _reportsimilar(ui.warn, sim)
394 _reportsimilar(ui.warn, sim)
395 suggested = True
395 suggested = True
396 if not suggested:
396 if not suggested:
397 ui.pager('help')
398 ui.warn(nocmdmsg)
397 ui.warn(nocmdmsg)
399 commands.help_(ui, 'shortlist')
398 ui.warn(_("(use 'hg help' for a list of commands)\n"))
400 except IOError:
399 except IOError:
401 raise
400 raise
402 except KeyboardInterrupt:
401 except KeyboardInterrupt:
@@ -1683,6 +1683,7 b' Prohibit registration of commands that d'
1683 *** failed to import extension deprecatedcmd from $TESTTMP/deprecated/deprecatedcmd.py: missing attributes: norepo, optionalrepo, inferrepo
1683 *** failed to import extension deprecatedcmd from $TESTTMP/deprecated/deprecatedcmd.py: missing attributes: norepo, optionalrepo, inferrepo
1684 *** (use @command decorator to register 'deprecatedcmd')
1684 *** (use @command decorator to register 'deprecatedcmd')
1685 hg: unknown command 'deprecatedcmd'
1685 hg: unknown command 'deprecatedcmd'
1686 (use 'hg help' for a list of commands)
1686 [255]
1687 [255]
1687
1688
1688 the extension shouldn't be loaded at all so the mq works:
1689 the extension shouldn't be loaded at all so the mq works:
@@ -652,29 +652,7 b' Test command without options'
652
652
653 $ hg skjdfks
653 $ hg skjdfks
654 hg: unknown command 'skjdfks'
654 hg: unknown command 'skjdfks'
655 Mercurial Distributed SCM
655 (use 'hg help' for a list of commands)
656
657 basic commands:
658
659 add add the specified files on the next commit
660 annotate show changeset information by line for each file
661 clone make a copy of an existing repository
662 commit commit the specified files or all outstanding changes
663 diff diff repository (or selected files)
664 export dump the header and diffs for one or more changesets
665 forget forget the specified files on the next commit
666 init create a new repository in the given directory
667 log show revision history of entire repository or files
668 merge merge another revision into working directory
669 pull pull changes from the specified source
670 push push changes to the specified destination
671 remove remove the specified files on the next commit
672 serve start stand-alone webserver
673 status show changed files in the working directory
674 summary summarize working directory state
675 update update working directory (or switch revisions)
676
677 (use 'hg help' for the full list of commands or 'hg -v' for details)
678 [255]
656 [255]
679
657
680 Typoed command gives suggestion
658 Typoed command gives suggestion
@@ -393,6 +393,7 b' color coding of error message with curre'
393
393
394 $ hg unknowncommand > /dev/null
394 $ hg unknowncommand > /dev/null
395 hg: unknown command 'unknowncommand'
395 hg: unknown command 'unknowncommand'
396 (use 'hg help' for a list of commands)
396 [255]
397 [255]
397
398
398 color coding of error message without curses
399 color coding of error message without curses
@@ -400,6 +401,7 b' color coding of error message without cu'
400 $ echo 'raise ImportError' > curses.py
401 $ echo 'raise ImportError' > curses.py
401 $ PYTHONPATH=`pwd`:$PYTHONPATH hg unknowncommand > /dev/null
402 $ PYTHONPATH=`pwd`:$PYTHONPATH hg unknowncommand > /dev/null
402 hg: unknown command 'unknowncommand'
403 hg: unknown command 'unknowncommand'
404 (use 'hg help' for a list of commands)
403 [255]
405 [255]
404
406
405 $ cd ..
407 $ cd ..
@@ -15,29 +15,7 b''
15
15
16 $ hg an a
16 $ hg an a
17 hg: unknown command 'an'
17 hg: unknown command 'an'
18 Mercurial Distributed SCM
18 (use 'hg help' for a list of commands)
19
20 basic commands:
21
22 add add the specified files on the next commit
23 annotate show changeset information by line for each file
24 clone make a copy of an existing repository
25 commit commit the specified files or all outstanding changes
26 diff diff repository (or selected files)
27 export dump the header and diffs for one or more changesets
28 forget forget the specified files on the next commit
29 init create a new repository in the given directory
30 log show revision history of entire repository or files
31 merge merge another revision into working directory
32 pull pull changes from the specified source
33 push push changes to the specified destination
34 remove remove the specified files on the next commit
35 serve start stand-alone webserver
36 status show changed files in the working directory
37 summary summarize working directory state
38 update update working directory (or switch revisions)
39
40 (use 'hg help' for the full list of commands or 'hg -v' for details)
41 [255]
19 [255]
42 $ hg annotate a
20 $ hg annotate a
43 0: a
21 0: a
General Comments 0
You need to be logged in to leave comments. Login now