dispatch: remove 2 calls to fancyopts

Summary: clidispatch replaces them.

Reviewed By: sfilipco

Differential Revision: D16733263

fbshipit-source-id: 32e6cef0ec289a47969b75c332a3117591862ce0
This commit is contained in:
Jun Wu 2019-08-15 10:06:49 -07:00 committed by Facebook Github Bot
parent d2e169b097
commit 37bf3cd1eb

View File

@ -525,7 +525,6 @@ def _runcatch(req):
def _runcatchfunc():
realcmd = None
try:
cmdargs = fancyopts.fancyopts(req.args[:], commands.globalopts, {})
cmdargs = cliparser.parseargs(req.args[:])
cmd = cmdargs[0]
aliases, entry = cmdutil.findcmd(cmd, commands.table, False)
@ -1146,15 +1145,6 @@ def _parseconfig(ui, config):
def _earlyparseopts(ui, args):
options = {}
fancyopts.fancyopts(
args,
commands.globalopts,
options,
gnu=True,
early=True,
optaliases={"repository": ["repo"]},
)
try:
return cliparser.earlyparse(args)
except UnicodeDecodeError: