Mercurial > public > mercurial-scm > hg-stable
diff mercurial/cmdutil.py @ 5113:d5126a0172ba
merge with crew-stable
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Sat, 04 Aug 2007 22:27:52 +0200 |
parents | c0417a319e39 3d35c8cb5eb4 |
children | 92236732d5a1 |
line wrap: on
line diff
--- a/mercurial/cmdutil.py Sat Aug 04 12:38:30 2007 -0700 +++ b/mercurial/cmdutil.py Sat Aug 04 22:27:52 2007 +0200 @@ -21,7 +21,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 @@ -35,7 +35,7 @@ if '--debugger' in args: pdb.set_trace() try: - return dispatch(ui, args, argv0=argv0) + return dispatch(ui, args) finally: ui.flush() except: @@ -277,10 +277,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)