comparison tests/test-debugcomplete @ 3317:399c04369a1b

fix bash completion of debug commands; add test for debugcomplete The debugconfig -> showconfig renaming broke things.
author Alexis S. L. Carvalho <alexis@cecm.usp.br>
date Sun, 08 Oct 2006 20:27:23 -0300
parents
children
comparison
equal deleted inserted replaced
3291:0b5d626b354e 3317:399c04369a1b
1 #!/bin/sh
2
3 echo '% Show all commands except debug commands'
4 hg debugcomplete
5
6 echo
7 echo '% Show all commands that start with "a"'
8 hg debugcomplete a
9
10 echo
11 echo '% Do not show debug commands if there are other candidates'
12 hg debugcomplete d
13
14 echo
15 echo '% Show debug commands if there are no other candidates'
16 hg debugcomplete debug
17
18 echo
19 echo '% Do not show the alias of a debug command if there are other candidates'
20 echo '% (this should hide rawcommit)'
21 hg debugcomplete r
22
23 echo
24 echo '% Show the alias of a debug command if there are no other candidates'
25 hg debugcomplete rawc
26
27 echo
28 echo '% Show the global options'
29 hg debugcomplete --options | sort
30
31 echo
32 echo '% Show the options for the "serve" command'
33 hg debugcomplete --options serve | sort
34
35 echo
36 echo '% Show an error if we use --options with an ambiguous abbreviation'
37 hg debugcomplete --options s
38
39 exit 0