hgext/keyword.py
changeset 5824 b8e8bd3c82f6
parent 5823 2a66138c5e7e
child 5825 2b67acc404f6
equal deleted inserted replaced
5823:2a66138c5e7e 5824:b8e8bd3c82f6
   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