2017-10-06 10 views
0

コマンドラインスイッチ/環境変数を使用して外部拡張なしでmercurialを実行する方法はありますか?例えばmercurial:コマンドラインからすべての拡張機能を無効にする

は、このような状況で:

$ hg version --debug 
Mercurial Distributed SCM (version 4.3.3) 
[...] 
Enabled extensions: 

    hggit    external 
    hgremotebranches external 
    mq    internal 
    rebase   internal 
    shelve   internal 

は私が達成することができます方法:

$ hg --disable-all-extensions version --debug 
Mercurial Distributed SCM (version 4.3.3) 
[...] 
Enabled extensions: 

    <empty> 

私は--config extensions.name=!を経由して、個々の拡張機能を無効にすることができます知っているが、私は一度にすべてをハァハァする必要があります。

答えて

3

hg help environmentから:

HGRCPATH 
     A list of files or directories to search for configuration files. Item 
     separator is ":" on Unix, ";" on Windows. If HGRCPATH is not set, 
     platform default search path is used. If empty, only the .hg/hgrc from 
     the current repository is read. 

だから、あなたが行うことができます:水銀の開発者は、水銀のコマンドの意味を持つ避けるために、スクリプトでこの呪文を使うために皆を奨励

HGRCPATH= hg version --debug 

ユーザーの設定に依存。水銀の自動化に関するMozillaの詳細については、http://mozilla-version-control-tools.readthedocs.io/en/latest/hgmozilla/automation.htmlを参照してください。

関連する問題