Sophie

Sophie

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

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="ru">
  <head>
    <meta http-equiv="X-UA-Compatible" content="IE=Edge" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Using checkouts &#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" /> 
  </head><body>
    <div class="related" role="navigation" aria-label="related navigation">
      <h3>Навигация</h3>
      <ul>
<li><a href="http://bazaar.canonical.com/">
    <img src="../_static/bzr icon 16.png" /> Главная</a>&nbsp;|&nbsp;</li>
<a href="http://doc.bazaar.canonical.com/ru/">Документация</a>&nbsp;|&nbsp;</li>

        <li class="nav-item nav-item-0"><a href="../index.html">Содержание (2.7.0)</a> &#187;</li>
 
      </ul>
    </div>  

    <div class="document">
      <div class="documentwrapper">
        <div class="bodywrapper">
          <div class="body" role="main">
            
  <div class="section" id="using-checkouts">
<h1>Using checkouts<a class="headerlink" href="#using-checkouts" title="Ссылка на этот заголовок">¶</a></h1>
<div class="section" id="turning-a-branch-into-a-checkout">
<h2>Turning a branch into a checkout<a class="headerlink" href="#turning-a-branch-into-a-checkout" title="Ссылка на этот заголовок">¶</a></h2>
<p>If you have a local branch and wish to make it a checkout, use the
<code class="docutils literal notranslate"><span class="pre">bind</span></code> command like this:</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">bzr</span> <span class="n">bind</span> <span class="n">sftp</span><span class="p">:</span><span class="o">//</span><span class="n">centralhost</span><span class="o">/</span><span class="n">srv</span><span class="o">/</span><span class="n">bzr</span><span class="o">/</span><span class="n">PROJECT</span><span class="o">/</span><span class="n">trunk</span>
</pre></div>
</div>
<p>This is necessary, for example, after creating a central branch using
<code class="docutils literal notranslate"><span class="pre">push</span></code> as illustrated in the previous section.</p>
<p>After this, commits will be applied to the bound branch before
being applied locally.</p>
</div>
<div class="section" id="turning-a-checkout-into-a-branch">
<h2>Turning a checkout into a branch<a class="headerlink" href="#turning-a-checkout-into-a-branch" title="Ссылка на этот заголовок">¶</a></h2>
<p>If you have a checkout and wish to make it a normal branch, use the
<code class="docutils literal notranslate"><span class="pre">unbind</span></code> command like this:</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">bzr</span> <span class="n">unbind</span>
</pre></div>
</div>
<p>After this, commits will only be applied locally.</p>
</div>
<div class="section" id="getting-a-checkout">
<h2>Getting a checkout<a class="headerlink" href="#getting-a-checkout" title="Ссылка на этот заголовок">¶</a></h2>
<p>When working in a team using a central branch, one person needs
to provide some initial content as shown in the previous section.
After that, each person should use the <code class="docutils literal notranslate"><span class="pre">checkout</span></code> command to
create their local checkout, i.e. the sandbox in which they
will make their changes.</p>
<p>Unlike Subversion and CVS, in Bazaar the <code class="docutils literal notranslate"><span class="pre">checkout</span></code> command creates a
local full copy of history in addition to creating a working tree holding
the latest content. This means that operations such as <code class="docutils literal notranslate"><span class="pre">diff</span></code> and <code class="docutils literal notranslate"><span class="pre">log</span></code>
are fast and can still be used when disconnected from the central location.</p>
</div>
<div class="section" id="getting-a-lightweight-checkout">
<span id="id1"></span><h2>Создание легковесной рабочей копии<a class="headerlink" href="#getting-a-lightweight-checkout" title="Ссылка на этот заголовок">¶</a></h2>
<p>While Bazaar does its best to efficiently store version history, there
are occasions when the history is simply not wanted. For example, if your
team is managing the content of a web site using Bazaar with a
central repository, then your release process might be as simple as
updating a checkout of the content on the public web server. In this
case, you probably don’t want the history downloaded to that location
as doing so:</p>
<blockquote>
<div><ul class="simple">
<li>wastes disk space holding history that isn’t needed there</li>
<li>exposes a Bazaar branch that you may want kept private.</li>
</ul>
</div></blockquote>
<p>To get a history-less checkout in Bazaar, use the <code class="docutils literal notranslate"><span class="pre">--lightweight</span></code>
option like this:</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">bzr</span> <span class="n">checkout</span> <span class="o">--</span><span class="n">lightweight</span> <span class="n">sftp</span><span class="p">:</span><span class="o">//</span><span class="n">centralhost</span><span class="o">/</span><span class="n">srv</span><span class="o">/</span><span class="n">bzr</span><span class="o">/</span><span class="n">PROJECT</span><span class="o">/</span><span class="n">trunk</span>
</pre></div>
</div>
<p>Of course, many of the benefits of a normal checkout are lost by doing
this but that’s a tradeoff you can make if and when it makes sense.</p>
<p>The <code class="docutils literal notranslate"><span class="pre">--lightweight</span></code> option only applies to checkouts, not to all branches.</p>
<p>Note: If your code base is really large and disk space on your computer
is limited, lightweight checkouts may be the right choice for you.
Be sure to consider all your options though including
<a class="reference external" href="#a-reminder-about-shared-repositories">shared repositories</a>,
<a class="reference external" href="#using-stacked-branches">stacked branches</a>, and <a href="#id2"><span class="problematic" id="id3">`reusing a checkout`_</span></a>.</p>
</div>
<div class="section" id="updating-to-the-latest-content">
<h2>Updating to the latest content<a class="headerlink" href="#updating-to-the-latest-content" title="Ссылка на этот заголовок">¶</a></h2>
<p>One of the important aspects of working in lockstep with others is
keeping your checkout up to date with the latest changes made to
the central branch. Just as you would in Subversion or CVS, you do
this in Bazaar by using the <code class="docutils literal notranslate"><span class="pre">update</span></code> command like this:</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">bzr</span> <span class="n">update</span>
</pre></div>
</div>
<p>This gets any new revisions available in the bound branch and
merges your local changes, if any.</p>
</div>
<div class="section" id="handling-commit-failures">
<h2>Handling commit failures<a class="headerlink" href="#handling-commit-failures" title="Ссылка на этот заголовок">¶</a></h2>
<p>Note that your checkout <em>must</em> be up to date with the bound branch
before running <code class="docutils literal notranslate"><span class="pre">commit</span></code>. Bazaar is actually stricter about this
than Subversion or CVS - you need to be up to date with the full
tree, not just for the files you’ve changed. Bazaar will ask you
to run <code class="docutils literal notranslate"><span class="pre">update</span></code> if it detects that a revision has been added to
the central location since you last updated.</p>
<p>If the network connection to the bound branch is lost, the commit will
fail. Some alternative ways of working around that are outlined next.</p>
</div>
</div>


          </div>
        </div>
      </div>
      <div class="sphinxsidebar" role="navigation" aria-label="main navigation">
        <div class="sphinxsidebarwrapper">
  <h3><a href="../index.html">Table of Contents</a></h3>
  <ul>
<li><a class="reference internal" href="#">Using checkouts</a><ul>
<li><a class="reference internal" href="#turning-a-branch-into-a-checkout">Turning a branch into a checkout</a></li>
<li><a class="reference internal" href="#turning-a-checkout-into-a-branch">Turning a checkout into a branch</a></li>
<li><a class="reference internal" href="#getting-a-checkout">Getting a checkout</a></li>
<li><a class="reference internal" href="#getting-a-lightweight-checkout">Создание легковесной рабочей копии</a></li>
<li><a class="reference internal" href="#updating-to-the-latest-content">Updating to the latest content</a></li>
<li><a class="reference internal" href="#handling-commit-failures">Handling commit failures</a></li>
</ul>
</li>
</ul>

  <div role="note" aria-label="source link">
    <h3>Эта страница</h3>
    <ul class="this-page-menu">
      <li><a href="../_sources/user-guide/using_checkouts.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><a href="http://bazaar.canonical.com/">
    <img src="../_static/bzr icon 16.png" /> Главная</a>&nbsp;|&nbsp;</li>
<a href="http://doc.bazaar.canonical.com/ru/">Документация</a>&nbsp;|&nbsp;</li>

        <li class="nav-item nav-item-0"><a href="../index.html">Содержание (2.7.0)</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>