Sophie

Sophie

distrib > Mageia > 7 > aarch64 > by-pkgid > 7e647d9940d31b34c253e6f71c416c4b > files > 3493

bzr-2.7.0-6.mga7.aarch64.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" lang="ja">
  <head>
    <meta http-equiv="X-UA-Compatible" content="IE=Edge" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Shelving Changes &#8212; Bazaar 2.7.0 ドキュメント</title>
    <link rel="stylesheet" href="../_static/classic.css" type="text/css" />
    <link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
    
    <script type="text/javascript" id="documentation_options" data-url_root="../" src="../_static/documentation_options.js"></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/language_data.js"></script>
    <script type="text/javascript" src="../_static/translations.js"></script>
    
    <link rel="shortcut icon" href="../_static/bzr.ico"/>
    <link rel="search" title="検索" href="../search.html" />
    <link rel="next" title="Filtered views" href="filtered_views.html" />
    <link rel="prev" title="疑似マージ" href="adv_merging.html" /> 
  </head><body>
    <div class="related" role="navigation" aria-label="related navigation">
      <h3>ナビゲーション</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="filtered_views.html" title="Filtered views"
             accesskey="N">次へ</a></li>
        <li class="right" >
          <a href="adv_merging.html" title="疑似マージ"
             accesskey="P">前へ</a> |</li>
        <li class="nav-item nav-item-0"><a href="../index.html">目次 (2.7.0)</a> &#187;</li>
          <li class="nav-item nav-item-1"><a href="index.html" accesskey="U">Bazaarユーザーガイド</a> &#187;</li> 
      </ul>
    </div>  

    <div class="document">
      <div class="documentwrapper">
        <div class="bodywrapper">
          <div class="body" role="main">
            
  <div class="section" id="shelving-changes">
<h1>Shelving Changes<a class="headerlink" href="#shelving-changes" title="このヘッドラインへのパーマリンク">¶</a></h1>
<p>ときどき、作業ツリーから一時的に変更点を取り除いて、あとで元に戻したいことがあるかもしれません。
たとえば何か作業中に小さいバグフィックスを見つけてコミットする場合などです。
Bazaarは変更を <code class="docutils literal notranslate"><span class="pre">shelf</span></code> (書棚)に保存する機能を持っています。
後で変更を元に戻したくなったときは、 <code class="docutils literal notranslate"><span class="pre">unshelve</span></code> を使って作業ツリーに戻すことができます。</p>
<p>たとえば、一つか複数の変更がされた作業ツリーを考えて見ます...:</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span>$ bzr diff
=== modified file &#39;description.txt&#39;
--- description.txt
+++ description.txt
@@ -2,7 +2,7 @@
 ===============

 These plugins
-by Michael Ellerman
+written by Michael Ellerman
 provide a very
 fine-grained &#39;undo&#39;
 facility
@@ -11,6 +11,6 @@
 This allows you to
 undo some of
 your changes,
-commit, and get
+perform a commit, and get
 back to where you
 were before.
</pre></div>
</div>
<p><code class="docutils literal notranslate"><span class="pre">shelve</span></code> コマンドはインタラクティブにどの変更を作業ツリーに保留しておきたいのかを質問します。:</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span>$ bzr shelve
--- description.txt
+++ description.txt
@@ -2,7 +2,7 @@
 ===============

 These plugins
-by Michael Ellerman
+written by Michael Ellerman
 provide a very
 fine-grained &#39;undo&#39;
 facility

Shelve? [yNfrq?]: y
--- description.txt
+++ description.txt
@@ -11,6 +11,6 @@
 This allows you to
 undo some of
 your changes,
-commit, and get
+perform a commit, and get
 back to where you
 were before.

Shelve? [yNfrq?]: n
Shelve 2 change(s)? [yNfrq?]&#39;, &#39;y&#39;
Selected changes:
 M  description.txt
Changes shelved with id &quot;1&quot;.
</pre></div>
</div>
<p>もしたくさんの変更が作業ツリーにあるのであれば、 <code class="docutils literal notranslate"><span class="pre">shelve</span></code> コマンドにファイルのリストを渡して、それらのファイルの変更だけについて質問されるようにすることができます。
変更を shelve した後に <code class="docutils literal notranslate"><span class="pre">diff</span></code> コマンドで作業ツリーに期待する変更だけが残っていることを確認するとよいでしょう。:</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span>$ bzr diff
=== modified file &#39;description.txt&#39;
--- description.txt
+++ description.txt
@@ -2,7 +2,7 @@
 ===============

 These plugins
-by Michael Ellerman
+written by Michael Ellerman
 provide a very
 fine-grained &#39;undo&#39;
 facility
</pre></div>
</div>
<p>よし! - コミットする準備ができました:</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span>$ bzr commit -m &quot;improve first sentence&quot;
</pre></div>
</div>
<p>後になって、shelveした変更を作業ツリーに <code class="docutils literal notranslate"><span class="pre">unshelve</span></code> コマンドで戻します:</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span>$ bzr unshelve
Unshelving changes with id &quot;1&quot;.
 M  description.txt
All changes applied successfully.
</pre></div>
</div>
<p>もし望むのであれば、複数のアイテムをshelfに置くことができます。
通常 <code class="docutils literal notranslate"><span class="pre">unshelve</span></code> が実行されるたびに最も最近 shelve された変更が元に戻されます。
明示的にどの変更を戻すのかを指定することで別の順序で unshelve することもできます。</p>
<p>Bazaarはshelveされた後に変更があっても、shelfの変更を作業ツリーにマージするので、衝突が発生するかもしれません。
その場合は通常のマージ後と同じように衝突を解決しなければなりません。</p>
</div>


          </div>
        </div>
      </div>
      <div class="sphinxsidebar" role="navigation" aria-label="main navigation">
        <div class="sphinxsidebarwrapper">
  <h4>前のトピックへ</h4>
  <p class="topless"><a href="adv_merging.html"
                        title="前の章へ">疑似マージ</a></p>
  <h4>次のトピックへ</h4>
  <p class="topless"><a href="filtered_views.html"
                        title="次の章へ">Filtered views</a></p>
  <div role="note" aria-label="source link">
    <h3>このページ</h3>
    <ul class="this-page-menu">
      <li><a href="../_sources/user-guide/shelving_changes.txt"
            rel="nofollow">ソースコードを表示</a></li>
    </ul>
   </div>
<div id="searchbox" style="display: none" role="search">
  <h3>クイック検索</h3>
    <div class="searchformwrapper">
    <form class="search" action="../search.html" method="get">
      <input type="text" name="q" />
      <input type="submit" value="検索" />
      <input type="hidden" name="check_keywords" value="yes" />
      <input type="hidden" name="area" value="default" />
    </form>
    </div>
</div>
<script type="text/javascript">$('#searchbox').show(0);</script>
        </div>
      </div>
      <div class="clearer"></div>
    </div>
    <div class="related" role="navigation" aria-label="related navigation">
      <h3>ナビゲーション</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="filtered_views.html" title="Filtered views"
             >次へ</a></li>
        <li class="right" >
          <a href="adv_merging.html" title="疑似マージ"
             >前へ</a> |</li>
        <li class="nav-item nav-item-0"><a href="../index.html">目次 (2.7.0)</a> &#187;</li>
          <li class="nav-item nav-item-1"><a href="index.html" >Bazaarユーザーガイド</a> &#187;</li> 
      </ul>
    </div>
    <div class="footer" role="contentinfo">
        &#169; Copyright 2009-2011 Canonical Ltd.
      このドキュメントは <a href="http://sphinx-doc.org/">Sphinx</a> 1.8.4 で生成しました。
    </div>
  </body>
</html>