[Bug 3703] New: unconsistent --config option handling

bugzilla-daemon at bz.selenic.com bugzilla-daemon at bz.selenic.com
Tue Nov 20 16:16:33 CST 2012


          Priority: normal
            Bug ID: 3703
                CC: mercurial-devel at selenic.com
          Assignee: bugzilla at selenic.com
           Summary: unconsistent --config option handling
          Severity: bug
    Classification: Unclassified
                OS: Mac OS
          Reporter: tkleczek at fb.com
          Hardware: PC
            Status: UNCONFIRMED
           Version: 2.4
         Component: Mercurial
           Product: Mercurial

Compare the output of this command:

$ hg branch --encodingmode --config

with this output:

$ hg branch --profile --config
hg branch: option --config requires argument
hg branch [-fC] [NAME]

In the second command config option is treated as --encodingmode parameter.

However, the config option seems to take precedence over other options:

$ hg branch --encodingmode --config "extension.mq=" 
hg branch: option --encodingmode requires argument
hg branch [-fC] [NAME]

I feel that it is inconsistent behaviour and we should report the
config-related error in the orginal command.

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

More information about the Mercurial-devel mailing list