LoginSignup
8
4

More than 5 years have passed since last update.

Mercurial-hgrcメモ

Last updated at Posted at 2015-01-29

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

8
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
8
4