tests/test-debugcomplete.t
branchstable
changeset 19067 292cd385856d
parent 18875 e9662c24f946
parent 19066 2cad301a7f06
child 19068 8618d31d532b
equal deleted inserted replaced
18875:e9662c24f946 19067:292cd385856d
     1 Show all commands except debug commands
       
     2   $ hg debugcomplete
       
     3   add
       
     4   addremove
       
     5   annotate
       
     6   archive
       
     7   backout
       
     8   bisect
       
     9   bookmarks
       
    10   branch
       
    11   branches
       
    12   bundle
       
    13   cat
       
    14   clone
       
    15   commit
       
    16   copy
       
    17   diff
       
    18   export
       
    19   forget
       
    20   graft
       
    21   grep
       
    22   heads
       
    23   help
       
    24   identify
       
    25   import
       
    26   incoming
       
    27   init
       
    28   locate
       
    29   log
       
    30   manifest
       
    31   merge
       
    32   outgoing
       
    33   parents
       
    34   paths
       
    35   phase
       
    36   pull
       
    37   push
       
    38   recover
       
    39   remove
       
    40   rename
       
    41   resolve
       
    42   revert
       
    43   rollback
       
    44   root
       
    45   serve
       
    46   showconfig
       
    47   status
       
    48   summary
       
    49   tag
       
    50   tags
       
    51   tip
       
    52   unbundle
       
    53   update
       
    54   verify
       
    55   version
       
    56 
       
    57 Show all commands that start with "a"
       
    58   $ hg debugcomplete a
       
    59   add
       
    60   addremove
       
    61   annotate
       
    62   archive
       
    63 
       
    64 Do not show debug commands if there are other candidates
       
    65   $ hg debugcomplete d
       
    66   diff
       
    67 
       
    68 Show debug commands if there are no other candidates
       
    69   $ hg debugcomplete debug
       
    70   debugancestor
       
    71   debugbuilddag
       
    72   debugbundle
       
    73   debugcheckstate
       
    74   debugcommands
       
    75   debugcomplete
       
    76   debugconfig
       
    77   debugdag
       
    78   debugdata
       
    79   debugdate
       
    80   debugdiscovery
       
    81   debugfileset
       
    82   debugfsinfo
       
    83   debuggetbundle
       
    84   debugignore
       
    85   debugindex
       
    86   debugindexdot
       
    87   debuginstall
       
    88   debugknown
       
    89   debugobsolete
       
    90   debugpushkey
       
    91   debugpvec
       
    92   debugrebuildstate
       
    93   debugrename
       
    94   debugrevlog
       
    95   debugrevspec
       
    96   debugsetparents
       
    97   debugstate
       
    98   debugsub
       
    99   debugsuccessorssets
       
   100   debugwalk
       
   101   debugwireargs
       
   102 
       
   103 Do not show the alias of a debug command if there are other candidates
       
   104 (this should hide rawcommit)
       
   105   $ hg debugcomplete r
       
   106   recover
       
   107   remove
       
   108   rename
       
   109   resolve
       
   110   revert
       
   111   rollback
       
   112   root
       
   113 Show the alias of a debug command if there are no other candidates
       
   114   $ hg debugcomplete rawc
       
   115   
       
   116 
       
   117 Show the global options
       
   118   $ hg debugcomplete --options | sort
       
   119   --config
       
   120   --cwd
       
   121   --debug
       
   122   --debugger
       
   123   --encoding
       
   124   --encodingmode
       
   125   --help
       
   126   --hidden
       
   127   --noninteractive
       
   128   --profile
       
   129   --quiet
       
   130   --repository
       
   131   --time
       
   132   --traceback
       
   133   --verbose
       
   134   --version
       
   135   -R
       
   136   -h
       
   137   -q
       
   138   -v
       
   139   -y
       
   140 
       
   141 Show the options for the "serve" command
       
   142   $ hg debugcomplete --options serve | sort
       
   143   --accesslog
       
   144   --address
       
   145   --certificate
       
   146   --cmdserver
       
   147   --config
       
   148   --cwd
       
   149   --daemon
       
   150   --daemon-pipefds
       
   151   --debug
       
   152   --debugger
       
   153   --encoding
       
   154   --encodingmode
       
   155   --errorlog
       
   156   --help
       
   157   --hidden
       
   158   --ipv6
       
   159   --name
       
   160   --noninteractive
       
   161   --pid-file
       
   162   --port
       
   163   --prefix
       
   164   --profile
       
   165   --quiet
       
   166   --repository
       
   167   --stdio
       
   168   --style
       
   169   --templates
       
   170   --time
       
   171   --traceback
       
   172   --verbose
       
   173   --version
       
   174   --web-conf
       
   175   -6
       
   176   -A
       
   177   -E
       
   178   -R
       
   179   -a
       
   180   -d
       
   181   -h
       
   182   -n
       
   183   -p
       
   184   -q
       
   185   -t
       
   186   -v
       
   187   -y
       
   188 
       
   189 Show an error if we use --options with an ambiguous abbreviation
       
   190   $ hg debugcomplete --options s
       
   191   hg: command 's' is ambiguous:
       
   192       serve showconfig status summary
       
   193   [255]
       
   194 
       
   195 Show all commands + options
       
   196   $ hg debugcommands
       
   197   add: include, exclude, subrepos, dry-run
       
   198   annotate: rev, follow, no-follow, text, user, file, date, number, changeset, line-number, ignore-all-space, ignore-space-change, ignore-blank-lines, include, exclude
       
   199   clone: noupdate, updaterev, rev, branch, pull, uncompressed, ssh, remotecmd, insecure
       
   200   commit: addremove, close-branch, amend, include, exclude, message, logfile, date, user, subrepos
       
   201   diff: rev, change, text, git, nodates, show-function, reverse, ignore-all-space, ignore-space-change, ignore-blank-lines, unified, stat, include, exclude, subrepos
       
   202   export: output, switch-parent, rev, text, git, nodates
       
   203   forget: include, exclude
       
   204   init: ssh, remotecmd, insecure
       
   205   log: follow, follow-first, date, copies, keyword, rev, removed, only-merges, user, only-branch, branch, prune, patch, git, limit, no-merges, stat, graph, style, template, include, exclude
       
   206   merge: force, rev, preview, tool
       
   207   pull: update, force, rev, bookmark, branch, ssh, remotecmd, insecure
       
   208   push: force, rev, bookmark, branch, new-branch, ssh, remotecmd, insecure
       
   209   remove: after, force, include, exclude
       
   210   serve: accesslog, daemon, daemon-pipefds, errorlog, port, address, prefix, name, web-conf, webdir-conf, pid-file, stdio, cmdserver, templates, style, ipv6, certificate
       
   211   status: all, modified, added, removed, deleted, clean, unknown, ignored, no-status, copies, print0, rev, change, include, exclude, subrepos
       
   212   summary: remote
       
   213   update: clean, check, date, rev
       
   214   addremove: similarity, include, exclude, dry-run
       
   215   archive: no-decode, prefix, rev, type, subrepos, include, exclude
       
   216   backout: merge, parent, rev, tool, include, exclude, message, logfile, date, user
       
   217   bisect: reset, good, bad, skip, extend, command, noupdate
       
   218   bookmarks: force, rev, delete, rename, inactive
       
   219   branch: force, clean
       
   220   branches: active, closed
       
   221   bundle: force, rev, branch, base, all, type, ssh, remotecmd, insecure
       
   222   cat: output, rev, decode, include, exclude
       
   223   copy: after, force, include, exclude, dry-run
       
   224   debugancestor: 
       
   225   debugbuilddag: mergeable-file, overwritten-file, new-file
       
   226   debugbundle: all
       
   227   debugcheckstate: 
       
   228   debugcommands: 
       
   229   debugcomplete: options
       
   230   debugdag: tags, branches, dots, spaces
       
   231   debugdata: changelog, manifest
       
   232   debugdate: extended
       
   233   debugdiscovery: old, nonheads, ssh, remotecmd, insecure
       
   234   debugfileset: rev
       
   235   debugfsinfo: 
       
   236   debuggetbundle: head, common, type
       
   237   debugignore: 
       
   238   debugindex: changelog, manifest, format
       
   239   debugindexdot: 
       
   240   debuginstall: 
       
   241   debugknown: 
       
   242   debugobsolete: flags, date, user
       
   243   debugpushkey: 
       
   244   debugpvec: 
       
   245   debugrebuildstate: rev
       
   246   debugrename: rev
       
   247   debugrevlog: changelog, manifest, dump
       
   248   debugrevspec: 
       
   249   debugsetparents: 
       
   250   debugstate: nodates, datesort
       
   251   debugsub: rev
       
   252   debugsuccessorssets: 
       
   253   debugwalk: include, exclude
       
   254   debugwireargs: three, four, five, ssh, remotecmd, insecure
       
   255   graft: rev, continue, edit, log, currentdate, currentuser, date, user, tool, dry-run
       
   256   grep: print0, all, text, follow, ignore-case, files-with-matches, line-number, rev, user, date, include, exclude
       
   257   heads: rev, topo, active, closed, style, template
       
   258   help: extension, command, keyword
       
   259   identify: rev, num, id, branch, tags, bookmarks, ssh, remotecmd, insecure
       
   260   import: strip, base, edit, force, no-commit, bypass, exact, import-branch, message, logfile, date, user, similarity
       
   261   incoming: force, newest-first, bundle, rev, bookmarks, branch, patch, git, limit, no-merges, stat, graph, style, template, ssh, remotecmd, insecure, subrepos
       
   262   locate: rev, print0, fullpath, include, exclude
       
   263   manifest: rev, all
       
   264   outgoing: force, rev, newest-first, bookmarks, branch, patch, git, limit, no-merges, stat, graph, style, template, ssh, remotecmd, insecure, subrepos
       
   265   parents: rev, style, template
       
   266   paths: 
       
   267   phase: public, draft, secret, force, rev
       
   268   recover: 
       
   269   rename: after, force, include, exclude, dry-run
       
   270   resolve: all, list, mark, unmark, no-status, tool, include, exclude
       
   271   revert: all, date, rev, no-backup, include, exclude, dry-run
       
   272   rollback: dry-run, force
       
   273   root: 
       
   274   showconfig: untrusted
       
   275   tag: force, local, rev, remove, edit, message, date, user
       
   276   tags: 
       
   277   tip: patch, git, style, template
       
   278   unbundle: update
       
   279   verify: 
       
   280   version: