Merge lp:~mbp/bzr/doc-stacking into lp:bzr

Proposed by Martin Pool
Status: Merged
Approved by: Martin Pool
Approved revision: no longer in the source branch.
Merged at revision: not available
Proposed branch: lp:~mbp/bzr/doc-stacking
Merge into: lp:bzr
Diff against target: 64 lines (+27/-10)
1 file modified
doc/en/user-guide/stacked.txt (+27/-10)
To merge this branch: bzr merge lp:~mbp/bzr/doc-stacking
Reviewer Review Type Date Requested Status
Andrew Bennetts Approve
Martin Pool Approve
Review via email: mp+21694@code.launchpad.net

Commit message

(mbp) improved documentation for stacking

Description of the change

Proposed doc improvements for bug 537888.

To post a comment you must log in.
Revision history for this message
Martin Pool (mbp) wrote :

This looks pretty good to me. I wonder if we should have a recommendation against stacking across servers though, which may make things fragile/slow.

Revision history for this message
Martin Pool (mbp) :
review: Approve
Revision history for this message
Andrew Bennetts (spiv) wrote :

I like this too.

Martin, do we need a contributor agreement from ~herberteuler ?

review: Approve
Revision history for this message
Martin Pool (mbp) wrote :

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'doc/en/user-guide/stacked.txt'
--- doc/en/user-guide/stacked.txt 2009-12-02 20:34:07 +0000
+++ doc/en/user-guide/stacked.txt 2010-03-18 23:18:20 +0000
@@ -1,15 +1,28 @@
1Using stacked branches1Using stacked branches
2======================2======================
33
4Motivation
5----------
6
7If you are working on a project, and you have read access to whose
8public repository but do not have write access to it, using stacked
9branches to backup/publish your work onto the same host of the public
10repository might be an option for you.
11
12Other scenarios for stacked branch usage include experimental branches
13and code hosting sites. For these scenarios, stacked branches are
14ideal because of the benefits it provides.
15
16
4What is a stacked branch?17What is a stacked branch?
5-------------------------18-------------------------
619
7A stacked branch is a branch that knows how to find revisions20A stacked branch is a branch that knows how to find revisions in
8in another branch. Stacked branches store just the21another branch (the stacked-on branch). Stacked branches store just
9unique revisions, making them faster to create and more22the unique revisions that are not in the stacked-on branch, making
10storage efficient. In these respects, stacked branches are23them faster to create and more storage efficient. In these respects,
11similar to shared repositories. However, stacked branches have24stacked branches are similar to shared repositories. However, stacked
12additional benefits:25branches have additional benefits:
1326
14* The new branch can be in a completely different location to the27* The new branch can be in a completely different location to the
15 branch being stacked on.28 branch being stacked on.
@@ -21,9 +34,6 @@
21 repository can be physically readonly to developers committing to stacked34 repository can be physically readonly to developers committing to stacked
22 branches.35 branches.
2336
24These benefits make stacked branches ideal for various scenarios
25including experimental branches and code hosting sites.
26
2737
28Creating a stacked branch38Creating a stacked branch
29-------------------------39-------------------------
@@ -63,7 +73,14 @@
6373
64This creates a new branch at ``my-url`` that is stacked on ``reference-url``74This creates a new branch at ``my-url`` that is stacked on ``reference-url``
65and only contains the revisions in the current branch that are not already75and only contains the revisions in the current branch that are not already
66in the branch at ``reference-url``.76in the branch at ``reference-url``. In particular, ``my-url`` and
77``reference-url`` can be on the same host, and the ``--stacked`` option
78can be used additionally to inform ``push`` to reference the
79revisions in ``reference-url``. For example::
80
81 bzr push --stacked-on sftp://host/project --stacked sftp://host/user/stacked-branch
82
83This usage fits the scenario described in the Motivation section.
6784
68If the local branch was created as a stacked branch, then you can85If the local branch was created as a stacked branch, then you can
69use the ``--stacked`` option to ``push`` and the *stacked-on* location86use the ``--stacked`` option to ``push`` and the *stacked-on* location