# HG changeset patch # User Idan Kamara # Date 2011-06-24 16:44:59 # Node ID 10dcb3e7cb555bceceb066465dda0a9daa330773 # Parent 99ace3cb7352db999ed46da08889b91418928b2b dispatch: return read config options diff --git a/mercurial/dispatch.py b/mercurial/dispatch.py --- a/mercurial/dispatch.py +++ b/mercurial/dispatch.py @@ -398,6 +398,8 @@ def _parse(ui, args): def _parseconfig(ui, config): """parse the --config options from the command line""" + configs = [] + for cfg in config: try: name, value = cfg.split('=', 1) @@ -405,10 +407,13 @@ def _parseconfig(ui, config): if not section or not name: raise IndexError ui.setconfig(section, name, value) + configs.append((section, name, value)) except (IndexError, ValueError): raise util.Abort(_('malformed --config option: %r ' '(use --config section.name=value)') % cfg) + return configs + def _earlygetopt(aliases, args): """Return list of values for an option (or aliases).