mercurial alias: "option --config may not be abbreviated" error

configuration, mercurial

Solution

So I have got the solution to my question from the helpful Mercurial IRC. According to one of the core developers, mg, the error message is telling me that I cannot use --config in aliases. Instead, I can choose to use shell alias, `ci_s = !$HG ci --config...`, which would make Mercurial spawn a new child process. Since the commit process is quick, so I don't see any issue with spawning a new child process.

Problem

I have defined the following alias in my mercurial configuration. ``` [alias] ci_s = ci --config phases.new-commit=secret ``` When I executed the command `ci_s`, I got the error: abort: option --config may not be abbreviated! Not sure what's causing the error. My guess is the "=" sign between new-commit and secret. Is there any way to make this alias to work? Thanks.

Original source