Mercurialを使用しcommitなどを行う場合,hgrcファイルを設定する。
これはhgrcの設定についての備忘録です。
そのうちGitHubにファイルを上げたい。
hgrc
[ui]
username = user-id user@template.com
editor = vim
[extensions]
color =
graphlog =
info = /.hgdir/info.py
[color]
mode = ansi
[alias]
slog = log --template '{rev}:{node|short} {desc|firstline}\n'
・hgrcの内容説明
user名 & mail-address
username = user-id user@template.com
エディターにはvimerなのでvimを設定
editor = vim
以下を設定するとhg infoコマンド(svn info相当)が実行可能となる
info = /.hgdir/info.py
以下を設定するとhg glogコマンドが実行可能となる
graphlog =
info.pyは以下のURLから取得し上記に指定したフォルダに格納する
URL:https://www.mercurial-scm.org/wiki/InfoExtension
slogはlogコマンド表示を1行に要約してくれる(結構便利)
slog = log --template '{rev}:{node|short} {desc|firstline}\n'
この便利コマンドは以下のURLが元ネタ
URL:http://ja.hgtip.com/tips/beginner/2009-10-07-shortlog-for-fun-and-profit/
hgrcのマニュアルは以下を参照
http://mercurial-users.jp/manual/hgrc.5.html