hgkw/keyword.py
changeset 331 178f3e9ff5eb
parent 330 c5bba07dadd5
child 335 9f78d508764b
equal deleted inserted replaced
330:c5bba07dadd5 331:178f3e9ff5eb
   402     def kwbailout():
   402     def kwbailout():
   403         '''Obtains command via simplified cmdline parsing,
   403         '''Obtains command via simplified cmdline parsing,
   404         returns True if keyword expansion not needed.'''
   404         returns True if keyword expansion not needed.'''
   405         nokwcommands = ('add', 'addremove', 'bundle', 'clone', 'copy',
   405         nokwcommands = ('add', 'addremove', 'bundle', 'clone', 'copy',
   406                         'export', 'grep', 'identify', 'incoming', 'init',
   406                         'export', 'grep', 'identify', 'incoming', 'init',
   407                         'outgoing', 'push', 'remove', 'rename', 'rollback',
   407                         'log', 'outgoing', 'push', 'remove', 'rename',
       
   408                         'rollback', 'tip',
   408                         'convert')
   409                         'convert')
   409         args = fancyopts.fancyopts(sys.argv[1:], commands.globalopts, {})
   410         args = fancyopts.fancyopts(sys.argv[1:], commands.globalopts, {})
   410         if args:
   411         if args:
   411             aliases, i = cmdutil.findcmd(ui, args[0], commands.table)
   412             aliases, i = cmdutil.findcmd(ui, args[0], commands.table)
   412             return aliases[0] in nokwcommands
   413             return aliases[0] in nokwcommands