5

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.

4

1 に答える 1

3

だから私は役立つMercurialIRCから私の質問に対する解決策を得ました。コア開発者の1人であるmgによると、エラーメッセージは、エイリアスで--configを使用できないことを示しています。代わりに、シェルエイリアスを使用することを選択できますci_s = !$HG ci --config...。これにより、Mercurialは新しい子プロセスを生成します。コミットプロセスは速いので、新しい子プロセスの生成に問題はありません。

于 2012-07-18T18:24:02.200 に答える