hgkw/keyword.py
changeset 225 2a0ac51bfd24
parent 224 fd98a9bffcbe
child 226 5255b00fbba5
equal deleted inserted replaced
224:fd98a9bffcbe 225:2a0ac51bfd24
   396                     'grep', 'identify', 'incoming', 'init', 'outgoing', 'push',
   396                     'grep', 'identify', 'incoming', 'init', 'outgoing', 'push',
   397                     'remove', 'rename', 'rollback']
   397                     'remove', 'rename', 'rollback']
   398 
   398 
   399     def _getcmd():
   399     def _getcmd():
   400         # commands or cmdutil.parse(ui, sys.argv[1:])[0]
   400         # commands or cmdutil.parse(ui, sys.argv[1:])[0]
       
   401         # is broken before 88803a69b24a (fancyopts)
   401         # results in no output from "hg diff --rev" with older hg versions
   402         # results in no output from "hg diff --rev" with older hg versions
   402         args = fancyopts.fancyopts(sys.argv[1:], commands.globalopts, {})
   403         args = fancyopts.fancyopts(sys.argv[1:], commands.globalopts, {})
   403         if args:
   404         if args:
   404             cmd = args[0]
   405             cmd = args[0]
   405             aliases, i = findcmd(ui, cmd)
   406             aliases, i = findcmd(ui, cmd)