Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>The way I would go about this would be to do this: start with a project like the one you created:</p> <pre><code>mkdir myProject cd myProject bzr init bzr mkdir src bzr mkdir data bzr mkdir foo .... # (As per your steps above) bzr add bzr ci -m "Done stuff" </code></pre> <p>Now create a repository and push the branch into it:</p> <pre><code># Now make it into a multi-branch project cd .. # Make a new repository with no working trees bzr init-repo --no-trees repo # Branch the project into the repository bzr branch myProject repo/trunk # Get rid of the project (by moving, to keep a backup) mv myProject myProject_backup </code></pre> <p>Now start working on a checkout (lightweight or otherwise depending on your preference):</p> <pre><code># Now get a working copy and put it in a separate folder to the repo bzr co --lightweight repo/trunk myProject # Now do stuff cd myProject # Hack hack hack bzr ci -m "Done stuff" </code></pre> <p>Now you can create branches for features or whatever:</p> <pre><code># Time to change branch (-b creates the new branch in the repository): bzr switch -b testFeature1 # Now it is a lightweight checkout of ../repo/testFeature1, which is branched off trunk # Hack hack hack bzr ci -m "Done stuff with testFeature1: seems to work" </code></pre> <p>and merge the changes back into trunk:</p> <pre><code>bzr switch trunk bzr merge ../repo/testFeature1 bzr ci -m "Merged testFeature1 development." </code></pre> <p>Note that <code>bzr switch</code> takes either a path that is either relative to the current directory, absolute, or relative to the repository when you're linked to a repository, but <code>bzr merge</code> requires a path that is relative to the current directory or absolute (not relative to the repository).</p> <hr> <p>This may not fit your workflow (checkouts and the like), but it is a fairly effective way of achieving what you want to do. Hope it helps.</p>
    singulars
    1. This table or related slice is empty.
    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. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      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