[Bug 3704] New: Weird config option handling when one of the --config, --cwd or --repo option is present

bugzilla-daemon at bz.selenic.com bugzilla-daemon at bz.selenic.com
Tue Nov 20 17:35:51 CST 2012


http://bz.selenic.com/show_bug.cgi?id=3704

          Priority: normal
            Bug ID: 3704
                CC: mercurial-devel at selenic.com
          Assignee: bugzilla at selenic.com
           Summary: Weird config option handling when one of the --config,
                    --cwd or --repo option is present
          Severity: bug
    Classification: Unclassified
                OS: Mac OS
          Reporter: tkleczek at fb.com
          Hardware: PC
            Status: UNCONFIRMED
           Version: 2.4
         Component: Mercurial
           Product: Mercurial

Basically this command doesn't result in an error:

$ hg —encodigmode —config "alias.sth=sth" strict branch
default

What happends here is "--config" option with its parameter gets removed from
the command line parameter list during the early scan. That makes  —encodigmode
being next to strict in the later getopts parse.

To fix this we should detect the situations in which one of the early options
is preceded by the option that requires a parameter.

This cannot be done during the early opt parsing though, cause we don't
have a complete knowledge of all the options at this stage.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Mercurial-devel mailing list