Differences between revisions 5 and 6
Revision 5 as of 2009-10-18 02:49:00
Size: 12117
Comment: merged changes up to UsingExtensions#165
Revision 6 as of 2009-10-23 13:37:17
Size: 12125
Comment: replaced link to Win32mbcsExtension by translated one
Deletions are marked like this. Additions are marked like this.
Line 81: Line 81:
||'''win32mbcs''' ||Win32mbcsExtension ||Windows で shift_jis・big5 ファイル名を使う || ||'''win32mbcs''' ||JapaneseWin32mbcsExtension ||Windows で shift_jis・big5 ファイル名を使う ||

このページは UsingExtensions の日本語訳です。

Mercurial エクステンションを使う

Mercurial にはエクステンションという便利な仕組みが備わっており、新しいコマンドを追加することができます。

エクステンションは新しい機能を作成するための手段を提供しており、 その機能はビルトインコマンドと同じように hg のコマンドラインから直接利用可能です。 エクステンションについて詳しくは、 'hg help extensions' (Mercurial 1.3以降) を参照してください。

エクステンションカテゴリ内のページについては CategoryExtension を、 インストールとエクステンションの書き方については WritingExtensions を参照してください。

1. エクステンションを有効にする

エクステンション "foo" を有効にするには、 そのエクステンションが Mercurial とともに配布されているか Python のサーチパスに含まれている場合は、 対応するエントリーを hgrc ファイルに追加してください。 例:

[extensions]
foo =

エクステンションをフルパスで指定してもかまいません:

[extensions]
myfeature = ~/.hgext/myfeature.py

上位スコープの hgrc で有効になっているエクステンションを特に無効化したい場合は、 ! をパスの前に足してください:

[extensions]
# /path/to/extension/bar.py にある bar エクステンションを無効化
hgext.bar = !/path/to/extension/bar.py
# baz エクステンションのパスを指定しなくても同じこと
hgext.baz = !

たいていのエクステンションは、同じ設定ファイル上の専用セクションで細かい設定ができるようになっています。

2. Mercurial とともに配布されているエクステンション

名称

ページ

説明

acl

AclExtension

コントロールリストをもとにリポジトリの一部へのコミットアクセスを制御

alias

AliasExtension

コマンドにユーザー定義の別名を (Mercurial 1.3 以降はビルトイン)

bisect

BisectExtension

履歴の2分探索(O(log(n))でバグや機能が入ったリビジョンをサクッと見つける。 (Mercurial 1.0 以降はビルトイン)

bookmarks

BookmarksExtension

コミットに追従していくマーカー

bugzilla

BugzillaExtension

チェンジセットで Bugzilla の ID を参照していれば、エントリーを更新

children

ChildrenExtension

子リビジョンを表示

churn

ChurnExtension

Show change statistics for mercurial operations per author

convert

ConvertExtension

他の SCM から Mercurial へリポジトリを変換

color

ColorExtension

カラフルな diff, status, qseries コマンド

extdiff

ExtdiffExtension

外部プログラムで変更内容を比較

fetch

FetchExtension

pull, merge, update は1ステップでどう?

gpg

GpgExtension

GPG を使ったチェンジセットの署名とその検証

graphlog

GraphlogExtension

ASCII アートのリビジョングラフと履歴を並べて表示

hgcia

HgciaExtension

CIA に通知

hgk

HgkExtension

Graphical repository and history browser based on gitk

highlight

HighlightExtension

hgweb のファイルリビジョン表示でシンタックスハイライト

imerge

ImergeExtension

Perform interactive, interruptible merges

inotify

InotifyExtension

linux 2.6 inotify API を用いて status を瞬時に更新

interhg

InterhgExtension

This extension allows you to change changelog and summary text just like InterWiki way

keyword

KeywordExtension

管理中のファイルで CVS 風のキーワード展開

mq

JapaneseMqExtension

Mercurial パッチキュー - 変更内容を一連のパッチとして管理

notify

NotifyExtension

リポジトリの変更を登録メールアドレスへお知らせ

pager

PagerExtension

Allows you to choose a pager

parentrevspec

ParentrevspecExtension

foo の親リビジョンを foo^ として参照

patchbomb

PatchbombExtension

チェンジセットを一連のパッチ email として送信

purge

PurgeExtension

Mercurial で管理していないファイル・ディレクトリを消去

rebase

RebaseExtension

リビジョンの分岐点を移動

record

RecordExtension

darcs record 的、コミットしたい変更点の選択

share

ShareExtension

Share repository history between multiple repos

transplant

TransplantExtension

Cherry-picking, rebasing and changeset rewriting

win32mbcs

JapaneseWin32mbcsExtension

Windows で shift_jis・big5 ファイル名を使う

win32text

Win32TextExtension

Windows リポジトリの改行コード変換に対処

zeroconf

ZeroconfExtension

Announce and browser respositories via zeroconf/bonjour

3. 外部提供のエクステンション

エクステンションの一覧は常に更新されています。最新の情報は UsingExtensions (英語) を参照してください。

名称

ページ

説明

activity

ActivityExtension

Create an image representing the activity of the repository

attic

AtticExtension

Easily deal with individual patches

autopager

AutopagerExtension

Invoke pager when output is longer than one screen

bfiles

BfilesExtension

Handle large binary files

bigfiles

BigfilesExtension

Support versions of big files with storage outside hg repo

boundmode

BoundModeExtension

Enables a bound mode (commit command auto-pushes)

branchhead

BranchHeadExtension

Show head(s) of the branch the working directory or given revision is on

casefold

CaseFoldExtension

Successful unjams case-folding conflicts

casestop

CasestopExtension

Stops case-folding conflicts on commit

changelog

ChangelogExtension

Auto-generate commit message from changelog entry

chart

ChartExtension

Display activity graphs (see also ActivityExtension and ChurnExtension)

cifiles

CifilesExtension

Print the names of all checked-in files

commits

CommitsExtension

Commit modified files as multiple changesets at once

collapse

CollapseExtension

Collapse consecutive changesets into one

config

ConfigExtensionCommandLine

Manage config files via command line only

config

ConfigExtension

Manage hgrc files via dialogs and command line

crecord

CrecordExtension

Select graphically which files/hunk/lines to commit

cutehg

CuteHgExtension

A growing set of easy to install and use dialogs for mercurial commands

cvscommit

CvscommitExtension

Push changesets to CVS

defpasswd

DefpasswdExtension

Automatically provide credentials (username/passwords) read from a file.

deps

DepsExtension

Create and manage versioned repository dependencies

digest

DigestExtension

Create and use small digest files for outgoing/bundle

diffstat

DiffstatExtension

Shortcut commands for displaying diffstat

dotlog

DotLogExtension

Yet Another DOT grapher

easycommit

EasycommitExtension

Command-line GUI for committing changes

easymerge

EasymergeExtension

Command-line GUI for merging

fastimport

FastImportExtension

Read a git "fast import" stream and turn it into changesets in a Mercurial repository

filereview

FileReviewExtension

Perform code review for any project using mercurial

fixcase

FixcaseExtension

Fix problems where an external tool has changed the case of a filename

fixutf8

FixUtf8Extension

Fix problems on non-utf8 systems with filenames (Windows never supports utf8 filenames)

foreign

ForeignExtension

Interactively register or delete foreign/unknown files

forest

ForestExtension

Manage a bunch of mercurial repos as a meta repository, with snapshot support thread

ftp

FTPExtension

Manage uploaded snapshots on FTP server

graphviz

JapaneseGraphvizExtension

チェンジセットツリーを描くために DOT 言語のソースを生成

group

GroupExtension

Allow to visually regroup a set of changesets

hg-git

HgGit

Push to and pull from a Git server

hgsubversion

HgSubversion

Use Mercurial as a Subversion client

hgtrac

HgTracExtension

Mercurial/Trac Integration Hook (pre/post hooks for Trac/Mercurial)

histedit

HisteditExtension

Edit, fold, drop changesets in the style of git rebase --interactive

histpush

HistpushExtension

Record locally which revisions have been pushed

info

InfoExtension

Display basic information about a repository

kerberos

KerberosExtension

Kerberos Authentication over HTTP support

localbranch

LocalbranchExtension

Create clones inside your working directory

makewritable

MakewritableExtension

Interactively removes read-only flags from files

message

MessageExtension

Preset the message used for commit

mbox

MboxExtension

Import patches from unix mailboxes in MQ

nearest

NearestExtension

Display the nearest tag from a given changeset

pbranch

PatchBranchExtension

Collaborative and/or long-term patch development and maintenance

prompt

PromptExtension

Put information about the current repository into a shell prompt

publishall

PublishAllExtension

Publish to all your set repositories (ie: paths)

reviewboard

ReviewboardExtension

Post changesets for review to a Review Board server

qct

QctExtension

Provide access to the Qct commit tool

qtimes

QtimesExtension

Save or restore modification times of files affected by patch queue

qup

QupExtension

Move MQ patches to top of unapplied part of series

rcpath

RcpathExtension

Displays Mercurial configuration file paths and names

rdiff

RdiffExtension

Allow diff to work against remote repositories

reposettings

ReposettingsExtension

Allow repo specific configuration from central configuration files

schemes

SchemesExtension

Add shortcuts to urls as url schemes

send

SendExtension

Automatic send of bundle containing changesets missing on remote, like darcs send

sharedrepo

SharedRepoExtension

Let multiple working directories share the same repository

shelve

ShelveExtension

Interactively select changes to set aside

sonichg

SonicHgExtension

Record pushlog data, web interfaces to view pushlog & shortlog with slider, advanced search for pushlog, new file log page, full side-by-side diffs, regex filter, commit syntax warning and more!

tasks

TasksExtension

Manage tasks as collections of contiguous changesets

timestamp

TimestampExtension

Saves and restores file timestamps

4. 参考


CategoryJapanese

JapaneseUsingExtensions (last edited 2017-04-09 13:39:00 by YuyaNishihara)