<!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>init-repository — 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> <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 User Reference" href="index.html" /> <link rel="next" title="join" href="join-help.html" /> <link rel="prev" title="init" href="init-help.html" /> </head> <body> <div class="related"> <h3>Navigation</h3> <ul> <li class="right" style="margin-right: 10px"> <a href="join-help.html" title="join" accesskey="N">next</a></li> <li class="right" > <a href="init-help.html" title="init" accesskey="P">previous</a> |</li> <li><a href="http://bazaar.canonical.com/"> <img src="../_static/bzr icon 16.png" /> Home</a> | </li> <a href="http://doc.bazaar.canonical.com/en/">Documentation</a> | </li> <li><a href="../index.html">Table of Contents (2.4.2)</a> »</li> <li><a href="index.html" accesskey="U">Bazaar User Reference</a> »</li> </ul> </div> <div class="document"> <div class="documentwrapper"> <div class="bodywrapper"> <div class="body"> <div class="section" id="init-repository"> <h1>init-repository<a class="headerlink" href="#init-repository" title="Permalink to this headline">ΒΆ</a></h1> <table class="docutils field-list" frame="void" rules="none"> <col class="field-name" /> <col class="field-body" /> <tbody valign="top"> <tr class="field"><th class="field-name">Purpose:</th><td class="field-body"><p class="first">Create a shared repository for branches to share storage space.</p> </td> </tr> <tr class="field"><th class="field-name">Usage:</th><td class="field-body"><p class="first">bzr init-repository LOCATION</p> </td> </tr> <tr class="field"><th class="field-name">Options:</th><td class="field-body"><table class="first docutils option-list" frame="void" rules="none"> <col class="option" /> <col class="description" /> <tbody valign="top"> <tr><td class="option-group"> <kbd><span class="option">--no-trees</span></kbd></td> <td><p class="first last">Branches in the repository will default to not having a working tree.</p> </td></tr> <tr><td class="option-group"> <kbd><span class="option">-v</span>, <span class="option">--verbose</span></kbd></td> <td><p class="first last">Display more information.</p> </td></tr> <tr><td class="option-group"> <kbd><span class="option">-q</span>, <span class="option">--quiet</span></kbd></td> <td><p class="first last">Only display errors and warnings.</p> </td></tr> <tr><td class="option-group"> <kbd><span class="option">--usage</span></kbd></td> <td><p class="first last">Show usage message and options.</p> </td></tr> <tr><td class="option-group"> <kbd><span class="option">-h</span>, <span class="option">--help</span></kbd></td> <td><p class="first last">Show help message.</p> </td></tr> </tbody> </table> <p>Repository format:</p> <div class="highlight-python"><pre>--format=ARG Specify a format for this repository. See "bzr help formats" for details. --1.14 A working-tree format that supports content filtering. --1.14-rich-root A variant of 1.14 that supports rich-root data (needed for bzr-svn and bzr-git). --2a First format for bzr 2.0 series. Uses group-compress storage. Provides rich roots which are a one-way transition. --default First format for bzr 2.0 series. Uses group-compress storage. Provides rich roots which are a one-way transition. --pack-0.92 New in 0.92: Pack-based format with data compatible with dirstate-tags format repositories. Interoperates with bzr repositories before 0.92 but cannot be read by bzr < 0.92.</pre> </div> </td> </tr> <tr class="field"><th class="field-name">Description:</th><td class="field-body"><p class="first">New branches created under the repository directory will store their revisions in the repository, not in the branch directory. For branches with shared history, this reduces the amount of storage needed and speeds up the creation of new branches.</p> <p>If the –no-trees option is given then the branches in the repository will not have working trees by default. They will still exist as directories on disk, but they will not have separate copies of the files at a certain revision. This can be useful for repositories that store branches which are interacted with through checkouts or remote branches, such as on a server.</p> </td> </tr> <tr class="field"><th class="field-name">Examples:</th><td class="field-body"><p class="first">Create a shared repository holding just branches:</p> <div class="highlight-python"><pre>bzr init-repo --no-trees repo bzr init repo/trunk</pre> </div> <p>Make a lightweight checkout elsewhere:</p> <div class="highlight-python"><pre>bzr checkout --lightweight repo/trunk trunk-checkout cd trunk-checkout (add files here)</pre> </div> </td> </tr> <tr class="field"><th class="field-name">Aliases:</th><td class="field-body"><p class="first">init-repo</p> </td> </tr> <tr class="field"><th class="field-name">See also:</th><td class="field-body"><p class="first last"><a class="reference internal" href="branch-help.html"><em>branch</em></a>, <a class="reference internal" href="checkout-help.html"><em>checkout</em></a>, <a class="reference internal" href="init-help.html"><em>init</em></a>, <a class="reference internal" href="repositories-help.html"><em>repositories</em></a></p> </td> </tr> </tbody> </table> </div> </div> </div> </div> <div class="sphinxsidebar"> <div class="sphinxsidebarwrapper"> <h4>Previous topic</h4> <p class="topless"><a href="init-help.html" title="previous chapter">init</a></p> <h4>Next topic</h4> <p class="topless"><a href="join-help.html" title="next chapter">join</a></p> <h3>This Page</h3> <ul class="this-page-menu"> <li><a href="../_sources/user-reference/init-repository-help.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" size="18" /> <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="join-help.html" title="join" >next</a></li> <li class="right" > <a href="init-help.html" title="init" >previous</a> |</li> <li><a href="http://bazaar.canonical.com/"> <img src="../_static/bzr icon 16.png" /> Home</a> | </li> <a href="http://doc.bazaar.canonical.com/en/">Documentation</a> | </li> <li><a href="../index.html">Table of Contents (2.4.2)</a> »</li> <li><a href="index.html" >Bazaar User Reference</a> »</li> </ul> </div> <div class="footer"> © Copyright 2009-2011 Canonical Ltd. Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.0.7. </div> </body> </html>