Comments
Patch
@@ -3,6 +3,7 @@
from mercurial import demandimport
demandimport.enable()
+import getopt
import sys
from mercurial.i18n import _
from mercurial import error, simplemerge, fancyopts, util, ui
@@ -47,7 +48,7 @@
opts = {}
try:
args = fancyopts.fancyopts(sys.argv[1:], options, opts)
- except fancyopts.getopt.GetoptError as e:
+ except getopt.GetoptError as e:
raise ParseError(e)
if opts['help']:
showhelp()
@@ -10,6 +10,7 @@
import atexit
import difflib
import errno
+import getopt
import os
import pdb
import re
@@ -448,7 +449,7 @@
try:
args = fancyopts.fancyopts(args, commands.globalopts, options)
- except fancyopts.getopt.GetoptError as inst:
+ except getopt.GetoptError as inst:
raise error.CommandError(None, inst)
if args:
@@ -471,7 +472,7 @@
try:
args = fancyopts.fancyopts(args, c, cmdoptions, gnu=True)
- except fancyopts.getopt.GetoptError as inst:
+ except getopt.GetoptError as inst:
raise error.CommandError(cmd, inst)
# separate global options back out
@@ -601,7 +602,7 @@
try:
args = fancyopts.fancyopts(args, commands.globalopts, options)
- except fancyopts.getopt.GetoptError:
+ except getopt.GetoptError:
return
if not args: