Sophie

Sophie

distrib > Mageia > 5 > i586 > by-pkgid > 27647990744ebd9cfe32398f37f67e20 > files > 3035

bzr-2.6.0-11.1.mga5.i586.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>Releasing a project &mdash; Bazaar 2.6.0 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.6.0',
        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>
    <link rel="shortcut icon" href="../_static/bzr.ico"/>
    <link rel="top" title="Bazaar 2.6.0 documentation" href="../index.html" />
    <link rel="up" title="Bazaar User Guide" href="index.html" />
    <link rel="next" title="Undoing mistakes" href="undoing_mistakes.html" />
    <link rel="prev" title="Browsing history" href="browsing_history.html" /> 
  </head>
  <body>
    <div class="related">
      <h3>Navigation</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="undoing_mistakes.html" title="Undoing mistakes"
             accesskey="N">next</a></li>
        <li class="right" >
          <a href="browsing_history.html" title="Browsing history"
             accesskey="P">previous</a> |</li>
<li><a href="http://bazaar.canonical.com/">
    <img src="../_static/bzr icon 16.png" /> Home</a>&nbsp;|&nbsp;</li>
<a href="http://doc.bazaar.canonical.com/en/">Documentation</a>&nbsp;|&nbsp;</li>

        <li><a href="../index.html">Table of Contents (2.6.0)</a> &raquo;</li>

          <li><a href="index.html" accesskey="U">Bazaar User Guide</a> &raquo;</li> 
      </ul>
    </div>  

    <div class="document">
      <div class="documentwrapper">
        <div class="bodywrapper">
          <div class="body">
            
  <div class="section" id="releasing-a-project">
<h1>Releasing a project<a class="headerlink" href="#releasing-a-project" title="Permalink to this headline">¶</a></h1>
<div class="section" id="packaging-a-release">
<h2>Packaging a release<a class="headerlink" href="#packaging-a-release" title="Permalink to this headline">¶</a></h2>
<p>The <tt class="docutils literal"><span class="pre">export</span></tt> command is used to package a release, i.e. to
take a copy of the files and directories in a branch and
package them into a fresh directory or archive. For example,
this command will package the last committed version into
a <tt class="docutils literal"><span class="pre">tar.gz</span></tt> archive file:</p>
<div class="highlight-python"><div class="highlight"><pre>bzr export ../releases/my-stuff-1.5.tar.gz
</pre></div>
</div>
<p>The <tt class="docutils literal"><span class="pre">export</span></tt> command uses the suffix of the archive file
to work out the type of archive to create as shown below.</p>
<blockquote>
<div><table border="1" class="docutils">
<colgroup>
<col width="40%" />
<col width="60%" />
</colgroup>
<thead valign="bottom">
<tr class="row-odd"><th class="head">Supported formats</th>
<th class="head">Autodetected by extension</th>
</tr>
</thead>
<tbody valign="top">
<tr class="row-even"><td>dir</td>
<td>(none)</td>
</tr>
<tr class="row-odd"><td>tar</td>
<td>.tar</td>
</tr>
<tr class="row-even"><td>tbz2</td>
<td>.tar.bz2, .tbz2</td>
</tr>
<tr class="row-odd"><td>tgz</td>
<td>.tar.gz, .tgz</td>
</tr>
<tr class="row-even"><td>zip</td>
<td>.zip</td>
</tr>
</tbody>
</table>
</div></blockquote>
<p>If you wish to package a revision other than the last one, use
the <tt class="docutils literal"><span class="pre">-r</span></tt> option. If you wish to tune the root directory inside
the archive, use the <tt class="docutils literal"><span class="pre">--root</span></tt> option. See the online help or
User Reference for further details on the options supported by
<tt class="docutils literal"><span class="pre">export</span></tt>.</p>
</div>
<div class="section" id="tagging-a-release">
<h2>Tagging a release<a class="headerlink" href="#tagging-a-release" title="Permalink to this headline">¶</a></h2>
<p>Rather than remembering which version was used to package a release,
it&#8217;s useful to define a symbolic name for a version using the <tt class="docutils literal"><span class="pre">tag</span></tt>
command like this:</p>
<div class="highlight-python"><div class="highlight"><pre>bzr tag version-1-5
</pre></div>
</div>
<p>That tag can be used later whenever a revision identifier is
required, e.g.:</p>
<div class="highlight-python"><div class="highlight"><pre>bzr diff -r tag:version-1-5
</pre></div>
</div>
<p>To see the list of tags defined in a branch, use the <tt class="docutils literal"><span class="pre">tags</span></tt> command.</p>
</div>
</div>


          </div>
        </div>
      </div>
      <div class="sphinxsidebar">
        <div class="sphinxsidebarwrapper">
  <h3><a href="../index.html">Table Of Contents</a></h3>
  <ul>
<li><a class="reference internal" href="#">Releasing a project</a><ul>
<li><a class="reference internal" href="#packaging-a-release">Packaging a release</a></li>
<li><a class="reference internal" href="#tagging-a-release">Tagging a release</a></li>
</ul>
</li>
</ul>

  <h4>Previous topic</h4>
  <p class="topless"><a href="browsing_history.html"
                        title="previous chapter">Browsing history</a></p>
  <h4>Next topic</h4>
  <p class="topless"><a href="undoing_mistakes.html"
                        title="next chapter">Undoing mistakes</a></p>
  <h3>This Page</h3>
  <ul class="this-page-menu">
    <li><a href="../_sources/user-guide/releasing_a_project.txt"
           rel="nofollow">Show Source</a></li>
  </ul>
<div id="searchbox" style="display: none">
  <h3>Quick search</h3>
    <form class="search" action="../search.html" method="get">
      <input type="text" name="q" />
      <input type="submit" value="Go" />
      <input type="hidden" name="check_keywords" value="yes" />
      <input type="hidden" name="area" value="default" />
    </form>
    <p class="searchtip" style="font-size: 90%">
    Enter search terms or a module, class or function name.
    </p>
</div>
<script type="text/javascript">$('#searchbox').show(0);</script>
        </div>
      </div>
      <div class="clearer"></div>
    </div>
    <div class="related">
      <h3>Navigation</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="undoing_mistakes.html" title="Undoing mistakes"
             >next</a></li>
        <li class="right" >
          <a href="browsing_history.html" title="Browsing history"
             >previous</a> |</li>
<li><a href="http://bazaar.canonical.com/">
    <img src="../_static/bzr icon 16.png" /> Home</a>&nbsp;|&nbsp;</li>
<a href="http://doc.bazaar.canonical.com/en/">Documentation</a>&nbsp;|&nbsp;</li>

        <li><a href="../index.html">Table of Contents (2.6.0)</a> &raquo;</li>

          <li><a href="index.html" >Bazaar User Guide</a> &raquo;</li> 
      </ul>
    </div>
    <div class="footer">
        &copy; Copyright 2009-2011 Canonical Ltd.
      Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.2.3.
    </div>
  </body>
</html>