Merge lp://staging/~ian-clatworthy/bzr-pipeline/better-help-for-plugins-guide into lp://staging/bzr-pipeline

Proposed by Ian Clatworthy
Status: Merged
Approved by: Aaron Bentley
Approved revision: 139
Merged at revision: not available
Proposed branch: lp://staging/~ian-clatworthy/bzr-pipeline/better-help-for-plugins-guide
Merge into: lp://staging/bzr-pipeline
Diff against target: 160 lines (+65/-49)
2 files modified
__init__.py (+59/-44)
commands.py (+6/-5)
To merge this branch: bzr merge lp://staging/~ian-clatworthy/bzr-pipeline/better-help-for-plugins-guide
Reviewer Review Type Date Requested Status
Aaron Bentley Approve
Review via email: mp+15077@code.staging.launchpad.net
To post a comment you must log in.
Revision history for this message
Ian Clatworthy (ian-clatworthy) wrote :

This patches improves the formatting of the help generated for the Plugins Guide: http://doc.bazaar-vcs.org/plugins/en/pipeline-plugin.html.

Revision history for this message
Aaron Bentley (abentley) wrote :

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Ian Clatworthy wrote:

> This patches improves the formatting of the help generated for the Plugins Guide: http://doc.bazaar-vcs.org/plugins/en/pipeline-plugin.html.

 status approved

Thanks, taken. pipeline has a stable branch, lp:bzr-pipeline/stable,
and I'll apply these changes there also.

Aaron
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAksGnKwACgkQ0F+nu1YWqI1hWgCePD8w2XTxwKyD1674W/kmb5+I
NsMAnjuvvhDgyJo6zp9aSTh5SCcslDcj
=vMTX
-----END PGP SIGNATURE-----

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file '__init__.py'
--- __init__.py 2009-11-18 04:32:40 +0000
+++ __init__.py 2009-11-20 06:45:22 +0000
@@ -17,24 +17,36 @@
1717
18"""Manage a series of branches as a pipeline.18"""Manage a series of branches as a pipeline.
1919
20Provides the following commands:20Here is a summary of the commands added.
21- reconfigure-pipeline21
22- add-pipe22==================== =======================================================
23- remove-pipe23Command Description
24- switch-pipe24==================== =======================================================
25- show-pipeline25reconfigure-pipeline Reconfigure a tree with branch into a lightweight
26- pump26 checkout
27- sync-pipeline27add-pipe Add a pipe to the pipeline
2828remove-pipe Remove a pipe from the pipeline
29It also extends "merge --uncommitted" to work with pipes.29switch-pipe Switch from one pipe to another
3030show-pipeline Show the current pipeline
31To get started, create a branch and lightweight checkout:31pump From this pipe onward, merge all pipes into their next
32bzr init pipe132 pipe and commit
33bzr checkout --lightweight pipe1 tree33sync-pipeline Synchronise the contents of this pipeline with another
34cd tree34 copy
35commit -m "first commit"35pipe-patches Export the pipeline as a collection of patches,
36bzr add-pipe pipe236 one per pipe
37bzr show-pipeline37lp-submit Submit the specified pipe to Launchpad
38==================== =======================================================
39
40It also extends `merge --uncommitted` to work with pipes.
41
42To get started, create a branch and lightweight checkout::
43
44 bzr init pipe1
45 bzr checkout --lightweight pipe1 tree
46 cd tree
47 commit -m "first commit"
48 bzr add-pipe pipe2
49 bzr show-pipeline
3850
39If you have an existing tree that you wish to start using as a pipeline,51If you have an existing tree that you wish to start using as a pipeline,
40use `reconfigure-pipeline` to convert it.52use `reconfigure-pipeline` to convert it.
@@ -45,43 +57,46 @@
45several related tasks without committing.57several related tasks without committing.
4658
47The pump command merges and commits changes along the pipeline, starting59The pump command merges and commits changes along the pipeline, starting
48with the current pipe. For example:60with the current pipe. For example::
4961
50bzr add-pipe next62 bzr add-pipe next
51echo "hello" > new63 echo "hello" > new
52bzr add64 bzr add
53bzr commit -m "Added file new"65 bzr commit -m "Added file new"
54bzr pump66 bzr pump
5567
56This will commit a revision to the pipe named "next" that adds the file "new"68This will commit a revision to the pipe named "next" that adds the file "new".
5769
58Each pipe is identified by its branch nick. The location of each pipe is70Each pipe is identified by its branch nick. The location of each pipe is
59provided as a location alias, which consists of ":pipe:" followed by its nick.71provided as a location alias, which consists of ":pipe:" followed by its nick.
60So, to switch to pipe named "my-new" using the standard switch command:72So, to switch to pipe named "my-new" using the standard switch command::
6173
62bzr switch :pipe:my-new74 bzr switch :pipe:my-new
6375
64The aliases :prev: and :next: refer to the pipe before and after the current76The aliases :prev: and :next: refer to the pipe before and after the current
65pipe, respectively. So to see the changes added in this pipe:77pipe, respectively. So to see the changes added in this pipe::
6678
67bzr diff -rancestor::prev79 bzr diff -rancestor::prev
6880
69These aliases work virtually everywhere you can specify a branch. Since pipes81These aliases work virtually everywhere you can specify a branch. Since pipes
70are branches, you can do anything with them that you could do with a branch.82are branches, you can do anything with them that you could do with a branch.
7183
72You might find the following command aliases useful:84You might find the following command aliases useful::
7385
74# Show diff of changes originated in this pipe86 # Show diff of changes originated in this pipe
75pdiff = bzr diff -r ancestor::prev87 pdiff = bzr diff -r ancestor::prev
7688
77# Show status for changes originated in this pipe89 # Show status for changes originated in this pipe
78pstatus = status --short -r branch::prev90 pstatus = status --short -r branch::prev
7991
80# Submit the changes originated in this pipe for merging92 # Submit the changes originated in this pipe for merging
81psend = send -r ancestor::prev..93 psend = send -r ancestor::prev..
8294
83# Show commits which have not been pumped into the next pipe yet.95 # Show commits which have not been pumped into the next pipe yet.
84unpumped = missing --mine :next96 unpumped = missing --mine :next
97
98For more information on bzr-pipeline, see the home page:
99http://bazaar-vcs.org/BzrPipeline.
85"""100"""
86101
87102
88103
=== modified file 'commands.py'
--- commands.py 2009-11-17 22:08:33 +0000
+++ commands.py 2009-11-20 06:45:22 +0000
@@ -231,10 +231,10 @@
231 """Show the current pipeline.231 """Show the current pipeline.
232232
233 All pipes are listed with the beginning of the pipeline at the top and the233 All pipes are listed with the beginning of the pipeline at the top and the
234 end of the pipeline at the bottom.234 end of the pipeline at the bottom. These indicators are used::
235235
236 * - The current pipe.236 * - The current pipe.
237 U - A pipe holding uncommitted changes.237 U - A pipe holding uncommitted changes.
238238
239 Uncommitted changes are automatically restored by the 'switch-pipe'239 Uncommitted changes are automatically restored by the 'switch-pipe'
240 command.240 command.
@@ -364,8 +364,9 @@
364 takes_options = [Option('staging',364 takes_options = [Option('staging',
365 help='Propose the merge on staging.'),365 help='Propose the merge on staging.'),
366 Option('message', short_name='m', type=unicode,366 Option('message', short_name='m', type=unicode,
367 help='Commit message'),367 help='Commit message.'),
368 ListOption('review', short_name='R', type=unicode)]368 ListOption('review', short_name='R', type=unicode,
369 help='Requested reviewer and optional type.')]
369370
370 takes_args = ['submit_branch?']371 takes_args = ['submit_branch?']
371372

Subscribers

People subscribed via source and target branches