--- a/mercurial/cmdutil.py Tue Jul 10 10:06:24 2007 -0700
+++ b/mercurial/cmdutil.py Sat Aug 04 22:25:12 2007 +0200
@@ -20,7 +20,7 @@
class ParseError(Exception):
"""Exception raised on errors in parsing the command line."""
-def runcatch(ui, args, argv0=None):
+def runcatch(ui, args):
def catchterm(*args):
raise util.SignalInterrupt
@@ -34,7 +34,7 @@
if '--debugger' in args:
pdb.set_trace()
try:
- return dispatch(ui, args, argv0=argv0)
+ return dispatch(ui, args)
finally:
ui.flush()
except:
@@ -276,10 +276,7 @@
pos += 1
return values
-def dispatch(ui, args, argv0=None):
- # remember how to call 'hg' before changing the working dir
- util.set_hgexecutable(argv0)
-
+def dispatch(ui, args):
# read --config before doing anything else
# (e.g. to change trust settings for reading .hg/hgrc)
config = earlygetopt(['--config'], args)