環境変数による Mercurial への文字コード指定方法は、大きく以下の2種類に分類されます。 HGENCODING 環境変数 ロケール系環境変数設定
設定に関する問題が発生した場合、 hg config --debug を実行することで、 どの設定項目が、 どのファイルで 設定されているのかを、 知ることができます。
.hgrc 等に以下を記述すると全体的に色がつきます。 [extensions] color=
Default effects may be overriden from the .hgrc file: [color] status.modified = blue bold underline red_background status.added = green bold status.removed = red bold blue_background status.deleted = cyan bold underline status.unknown = magenta bold underline status.ignored = black bold
Mercurialでもhg infoを実現するInfo Extensionが作られています。 これはデフォルトでバンドルされていないので、 モジュール(info.py)をダウンロードして設定します。
[extensions] color = [extensions] info = /path/to/info.py [extensions] graphology =
[paths] default = ssh://hg@bitbucket.org/<username>/<repository> [extensions] color= info = /path/to/info.py [color] status.modified = blue bold underline white_background [auth] zyx.prefix = https://www.zyx3000.com zyx.username = {username}
Mercurial Keyring is a Mercurial extension used to securely save HTTP and SMTP authentication passwords in password databases
別の方法としてmercurial_keyringを使う方法がある。 これならパスワードはキーチェーンに保存される。
$ pip2.7 uninstall mercurial_extension_utils $ pip2.7 uninstall keyring $ pip2.7 uninstall mercurial_keyring $ pip2.7 install --user mercurial_keyring