Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Bazaar does not have a subrepository feature. [Correction: Apparently there's a bzr-externals plugin, available at lp:bzr-externals, though it emulates the svn:externals feature, not Git submodules or Mercurial subrepos.]</p> <p>However, this can fairly easily be worked around if you do not want to switch version control systems.</p> <p>Put the application and the library in two directories, say <code>app</code> and <code>lib</code> (I'll assume here that they are side-by-side, though they need not be). The following two scripts, <code>lib-snapshot</code> and <code>lib-sync</code> can then be used to link the current version of the application to a specific version of the library, which will be checked out in a subdirectory (also called <code>lib</code>) of the <code>app</code> checkout:</p> <p>lib-snapshot:</p> <pre><code>#!/bin/sh libsrc=../lib bzr revno --tree $libsrc &gt;libversion.txt </code></pre> <p>lib-sync:</p> <pre><code>#!/bin/sh ver=`cat libversion.txt` libsrc=../lib libdst=lib test -d $libdst/.bzr &amp;&amp; bzr update -q -r $ver $libdst || bzr checkout -q --lightweight -r $ver $libsrc $libdst </code></pre> <p>The current version of the library is stored in <code>libversion.txt</code>, which you need to put under version control (so that each version of the application is synced to the version you tested against).</p> <p>The <code>lib-snapshot</code> script will fetch the currently checked out version of your library and store it in <code>libversion.txt</code>. Use it whenever you think the library is stable enough that you want your application to use the new version. The <code>lib-sync</code> script can then be used to update the library subdirectory to contain the snapshot version; ideally, this script should also be used as part of the build/deployment process.</p> <p>Bazaar will automatically skip directories that contain repositories when adding files, but you may want to still add the library subdirectory to <code>.bzrignore</code> so that you don't get annoying warnings.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload