#author("2018-01-28T21:49:34+00:00","default:yusami","yusami")
#author("2023-10-22T09:42:10+00:00;2018-01-28T21:49:34+00:00","default:hotate","hotate")
#contents
&tag(Mercurial, 情報);
&tag(Mercurial,情報);

* 情報 [#cdbf772f]
- [[Mercurial - PukiWiki>http://ie.u-ryukyu.ac.jp/howto/index.php?Mercurial]]
- [[Mercurial チートシート — Mercurial CheatSheet 0.0.1 documentation>http://troter.jp/mercurial-cheatsheet/]]

* [[文字コード]] [#of5e2d7b]
- [[Mercurial の文字コード設定 - 彷徨えるフジワラ>http://d.hatena.ne.jp/flying-foozy/20111215/1323944808]]
 環境変数による Mercurial への文字コード指定方法は、大きく以下の2種類に分類されます。
 HGENCODING 環境変数
 ロケール系環境変数設定


* 設定 [#c8e227c9]
- [[hgrc>http://mercurial-users.jp/manual/hgrc.5.html#paths]]
 設定に関する問題が発生した場合、 hg config --debug を実行することで、 どの設定項目が、 どのファイルで
 設定されているのかを、 知ることができます。
- [[hg st や hg diff のColor表示 | 技術的生存報告記>http://www.sakito.com/2009/11/hg-st-hg-diff-color.html]]
 .hgrc 等に以下を記述すると全体的に色がつきます。
 [extensions]
 color=
- [[ColorExtension - Mercurial>https://www.mercurial-scm.org/wiki/ColorExtension]]
 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
- [[hgrc - Configuration files for Mercurial>http://www.selenic.com/mercurial/hgrc.5.html]]
- [[Git使いがMercurial使いに転職するとき設定しておくべきMercurial拡張 - TIM Labs>http://labs.timedia.co.jp/2011/03/mercurial-extensions-we-should-setup-for-gituser.html]]
 Mercurialでもhg infoを実現するInfo Extensionが作られています。 これはデフォルトでバンドルされていないので、
 モジュール(info.py)をダウンロードして設定します。

 [extensions]
 color =
 [extensions]
 info = /path/to/info.py
 [extensions]
 graphology =


** テンプレート [#ec386f86]
 [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}


* 認証 [#fb6984f0]
- [[Mekk / mercurial_keyring — Bitbucket>https://bitbucket.org/Mekk/mercurial_keyring]]
 Mercurial Keyring is a Mercurial extension used to securely save HTTP and SMTP 
 authentication passwords in password databases 

** [[macOS]] [#ud9d4b46]
- [[MacでMercurialのHTTPS認証のパスワードをキーチェーンに保存する - Misc Notes>http://y0m0r.hateblo.jp/entry/20140131/1391183766]]
 別の方法としてmercurial_keyringを使う方法がある。
 これならパスワードはキーチェーンに保存される。
- [[Mercurial]]を更新すると、無効になってしまう?一旦削除してから、再インストールすると成功した。([[2018]]/01/21 [[Mercurial]] 4.4.2にて確認)
 $ pip2.7 uninstall mercurial_extension_utils
 $ pip2.7 uninstall keyring
 $ pip2.7 uninstall mercurial_keyring
 $ pip2.7 install --user mercurial_keyring

トップ   編集 差分 履歴 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS