Sophie

Sophie

distrib > Fedora > 16 > i386 > by-pkgid > a99c463cccd19ab912401d5eb4e6ee20 > files > 782

bzr-doc-2.4.2-1.fc16.noarch.rpm



<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    
    <title>プラグインを利用する &mdash; Bazaar v2.4.2 documentation</title>
    <link rel="stylesheet" href="../_static/default.css" type="text/css" />
    <link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
    <script type="text/javascript">
      var DOCUMENTATION_OPTIONS = {
        URL_ROOT:    '../',
        VERSION:     '2.4.2',
        COLLAPSE_INDEX: false,
        FILE_SUFFIX: '.html',
        HAS_SOURCE:  true
      };
    </script>
    <script type="text/javascript" src="../_static/jquery.js"></script>
    <script type="text/javascript" src="../_static/underscore.js"></script>
    <script type="text/javascript" src="../_static/doctools.js"></script>
    <script type="text/javascript" src="../_static/translations.js"></script>
    <link rel="shortcut icon" href="../_static/bzr.ico"/>
    <link rel="top" title="Bazaar v2.4.2 documentation" href="../index.html" />
    <link rel="up" title="Bazaarユーザーガイド" href="index.html" />
    <link rel="next" title="Bazaarの哲学" href="zen.html" />
    <link rel="prev" title="エイリアスを利用する" href="using_aliases.html" /> 
  </head>
  <body>
    <div class="related">
      <h3>ナビゲーション</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="zen.html" title="Bazaarの哲学"
             accesskey="N">次へ</a></li>
        <li class="right" >
          <a href="using_aliases.html" title="エイリアスを利用する"
             accesskey="P">前へ</a> |</li>
        <li><a href="../index.html">目次 (2.4.2)</a> &raquo;</li>
          <li><a href="index.html" accesskey="U">Bazaarユーザーガイド</a> &raquo;</li> 
      </ul>
    </div>  

    <div class="document">
      <div class="documentwrapper">
        <div class="bodywrapper">
          <div class="body">
            
  <div class="section" id="id1">
<h1>プラグインを利用する<a class="headerlink" href="#id1" title="このヘッドラインへのパーマリンク">¶</a></h1>
<div class="section" id="id2">
<h2>プラグインとは?<a class="headerlink" href="#id2" title="このヘッドラインへのパーマリンク">¶</a></h2>
<p>プラグインは主にサードパーティによって作られたBazaarのための外部コンポーネントです。
プラグインは新しい機能を追加することでBazaarを補強する能力があります。
プラグインは現在の機能を置き換えることでBazaarのふるまいを変更することもできます。
プラグインのサンプルのアプリケーションは次のとおりです:</p>
<ul class="simple">
<li>コマンドをオーバーライドする</li>
<li>新しいコマンドを追加する</li>
<li>追加のネットワーク転送機能を提供する</li>
<li>ログの出力をカスタマイズする</li>
</ul>
<p>プラグインを通してできるカスタマイズの可能性は際限がありません。
実際、開発者が新しい機能を公式のコードベースに含める前にテストするための方法としてプラグインは機能します。
プラグインは機能の引退時でも同様に役立ちます。たとえば廃止されたファイルのフォーマットがある日Bazaarのコアから除外されるかもしれませんが代わりにプラグインとして利用できます。</p>
<p>プラグインはユーザーにとって、外部の開発者にとっても、Bazaar自身にもよいものです。</p>
</div>
<div class="section" id="id3">
<h2>プラグインが見つかる場所<a class="headerlink" href="#id3" title="このヘッドラインへのパーマリンク">¶</a></h2>
<p><a class="reference external" href="http://wiki.bazaar.canonical.com/BzrPlugins">http://wiki.bazaar.canonical.com/BzrPlugins</a> ページで
プラグインのリストが見つかります。</p>
</div>
<div class="section" id="id4">
<h2>プラグインをインストールする方法<a class="headerlink" href="#id4" title="このヘッドラインへのパーマリンク">¶</a></h2>
<p>プラグインのインストール作業はとても簡単です! まだ作られていなければ、
Bazaarの設定ディレクトリの元で <tt class="docutils literal"><span class="pre">plugins</span></tt> ディレクトリを作ります。
Unix の場合は <tt class="docutils literal"><span class="pre">~/.bazaar/</span></tt> でWindowsの場合は
<tt class="docutils literal"><span class="pre">C:\Documents</span> <span class="pre">and</span> <span class="pre">Settings\&lt;username&gt;\Application</span> <span class="pre">Data\Bazaar\2.0\</span></tt> です。
このディレクトリの範囲内では(下記では$BZR_HOMEとして言及される) それぞれのプラグインは独自のサブディレクトリに設置されます。</p>
<p>プラグインはとりわけBazaarのブランチとよく連携します。
たとえば、 GNU/Linux のメインのユーザーアカウント用に bzrtools
プラグインをインストールするためには、次のコマンドを実行します:</p>
<div class="highlight-python"><pre>bzr branch http://panoramicfeedback.com/opensource/bzr/bzrtools
~/.bazaar/plugins/bzrtools</pre>
</div>
<p>プラグインをインストールするディレクトリの名前はPythonの有効な識別子でなければなりません。
このことはディレクトリは特定の文字だけを含まなければならないことを意味します。とりわけハイフン (<tt class="docutils literal"><span class="pre">-</span></tt>) を含んではなりません。
<tt class="docutils literal"><span class="pre">bzr-gtk</span></tt> を <tt class="docutils literal"><span class="pre">$BZR_HOME/plugins/bzr-gtk</span></tt> にインストールするよりも、 <tt class="docutils literal"><span class="pre">$BZR_HOME/plugins/gtk</span></tt> にインストールします。</p>
</div>
<div class="section" id="id5">
<h2>プラグインの代替用の場所<a class="headerlink" href="#id5" title="このヘッドラインへのパーマリンク">¶</a></h2>
<p>必要なパーミッションがあれば、プラグインをシステム全体のベースに
インストールすることもできます。</p>
<p>環境変数 <tt class="docutils literal"><span class="pre">BZR_PLUGIN_PATH</span></tt> をプラグインが含まれるディレクトリに
設定することで個人のプラグインの場所を上書きできます。
(詳細な解説は
<a class="reference external" href="../user-reference/configuration-help.html#bzr-plugin-path">ユーザーリファレンス</a>
を参照してください。)</p>
</div>
<div class="section" id="id7">
<h2>インストールされたプラグインの一覧を表示する<a class="headerlink" href="#id7" title="このヘッドラインへのパーマリンク">¶</a></h2>
<p>これを行うためには、次のようにpluginsコマンドを使います:</p>
<div class="highlight-python"><pre>bzr plugins</pre>
</div>
<p>それぞれのプラグインの名前、場所とバージョンが表示されます。</p>
<p>プラグインによって追加された新しいコマンドは <tt class="docutils literal"><span class="pre">bzr</span> <span class="pre">help</span> <span class="pre">commands</span></tt> を実行することで見ることができます。
プラグインによって提供されたコマンドはブラケットの中のプラグインの名前に従って表示されます。</p>
</div>
<div class="section" id="id8">
<h2>人気のあるプラグイン<a class="headerlink" href="#id8" title="このヘッドラインへのパーマリンク">¶</a></h2>
<p>次の表は人気のあるプラグインのサンプルです。</p>
<blockquote>
<div><table border="1" class="docutils">
<colgroup>
<col width="23%" />
<col width="25%" />
<col width="52%" />
</colgroup>
<thead valign="bottom">
<tr><th class="head">カテゴリ</th>
<th class="head">名前</th>
<th class="head">説明</th>
</tr>
</thead>
<tbody valign="top">
<tr><td>GUI</td>
<td>QBzr</td>
<td>QtベースのGUIツール</td>
</tr>
<tr><td>GUI</td>
<td>bzr-gtk</td>
<td>GTKベースのGUIツール</td>
</tr>
<tr><td>GUI</td>
<td>bzr-eclipse</td>
<td>Eclipseとの統合</td>
</tr>
<tr><td>General</td>
<td>bzrtools</td>
<td>その他。shelfを含めた機能の強化</td>
</tr>
<tr><td>General</td>
<td>difftools</td>
<td>外部の差分ツールヘルパー</td>
</tr>
<tr><td>General</td>
<td>extmerge</td>
<td>外部のマージツールヘルパー</td>
</tr>
<tr><td>Integration</td>
<td>bzr-svn</td>
<td>Subversionをリポジトリとして利用する</td>
</tr>
<tr><td>Migration</td>
<td>cvsps</td>
<td>CVSパッチセットを移行させる</td>
</tr>
</tbody>
</table>
</div></blockquote>
<p>あなた独自のプラグインを書きたい場合、難しいことではありません。
始めるためには付録の <a class="reference external" href="writing_a_plugin.html">プラグインを書く</a>
の項目をご覧ください。</p>
</div>
</div>


          </div>
        </div>
      </div>
      <div class="sphinxsidebar">
        <div class="sphinxsidebarwrapper">
  <h3><a href="../index.html">目次</a></h3>
  <ul>
<li><a class="reference internal" href="#">プラグインを利用する</a><ul>
<li><a class="reference internal" href="#id2">プラグインとは?</a></li>
<li><a class="reference internal" href="#id3">プラグインが見つかる場所</a></li>
<li><a class="reference internal" href="#id4">プラグインをインストールする方法</a></li>
<li><a class="reference internal" href="#id5">プラグインの代替用の場所</a></li>
<li><a class="reference internal" href="#id7">インストールされたプラグインの一覧を表示する</a></li>
<li><a class="reference internal" href="#id8">人気のあるプラグイン</a></li>
</ul>
</li>
</ul>

  <h4>前のトピックへ</h4>
  <p class="topless"><a href="using_aliases.html"
                        title="前の章へ">エイリアスを利用する</a></p>
  <h4>次のトピックへ</h4>
  <p class="topless"><a href="zen.html"
                        title="次の章へ">Bazaarの哲学</a></p>
  <h3>このページ</h3>
  <ul class="this-page-menu">
    <li><a href="../_sources/user-guide/plugins.txt"
           rel="nofollow">ソースコードを表示</a></li>
  </ul>
<div id="searchbox" style="display: none">
  <h3>クイック検索</h3>
    <form class="search" action="../search.html" method="get">
      <input type="text" name="q" size="18" />
      <input type="submit" value="検索" />
      <input type="hidden" name="check_keywords" value="yes" />
      <input type="hidden" name="area" value="default" />
    </form>
    <p class="searchtip" style="font-size: 90%">
    モジュール、クラス、または関数名を入力してください
    </p>
</div>
<script type="text/javascript">$('#searchbox').show(0);</script>
        </div>
      </div>
      <div class="clearer"></div>
    </div>
    <div class="related">
      <h3>ナビゲーション</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="zen.html" title="Bazaarの哲学"
             >次へ</a></li>
        <li class="right" >
          <a href="using_aliases.html" title="エイリアスを利用する"
             >前へ</a> |</li>
        <li><a href="../index.html">目次 (2.4.2)</a> &raquo;</li>
          <li><a href="index.html" >Bazaarユーザーガイド</a> &raquo;</li> 
      </ul>
    </div>
    <div class="footer">
        &copy; Copyright 2009-2011 Canonical Ltd.
      このドキュメントは <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.0.7 で生成しました。
    </div>
  </body>
</html>