Merge lp:~ian-clatworthy/bzr-scmproj/changes-for-plugins-guide into lp:bzr-scmproj

Proposed by Ian Clatworthy
Status: Merged
Approved by: Alexander Belchenko
Approved revision: 282
Merged at revision: not available
Proposed branch: lp:~ian-clatworthy/bzr-scmproj/changes-for-plugins-guide
Merge into: lp:bzr-scmproj
Diff against target: 110 lines (+38/-13)
2 files modified
__init__.py (+21/-1)
cli.py (+17/-12)
To merge this branch: bzr merge lp:~ian-clatworthy/bzr-scmproj/changes-for-plugins-guide
Reviewer Review Type Date Requested Status
Alexander Belchenko Approve
Review via email: mp+15085@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Ian Clatworthy (ian-clatworthy) wrote :

This patch makes various documentation improvements to improve formatting and content in the Plugins Guide: http://doc.bazaar-vcs.org/plugins/en/scmproj-plugin.html

Revision history for this message
Alexander Belchenko (bialix) wrote :

Thanks, I'll merge.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file '__init__.py'
2--- __init__.py 2009-10-23 11:48:51 +0000
3+++ __init__.py 2009-11-20 11:40:24 +0000
4@@ -8,7 +8,27 @@
5 # Implementation of LazyCommandProxy:
6 # (C) 2008 Lukáš Lalinský <lalinsky AT gmail com>
7
8-"""Organizing collection of vcs branches as complex project."""
9+"""Organise and manage a collection of VCS branches as a complex project.
10+
11+Here is a summary of the commands added.
12+
13+==================== =======================================================
14+Command Description
15+==================== =======================================================
16+project-init Initialize new project meta-directory
17+project-get Get a copy of an existing project on your local disk
18+project-commit Commit changes in components working copies
19+project-info Show info summary for project
20+project-update Update components of the project from their origins
21+project-publish Publish (push back) changes from components branches
22+ and control branch
23+project-command Run some command(s) for project components
24+chdir Run bzr command in another directory
25+==================== =======================================================
26+
27+For tutorials, developer documentation and comparisons with other systems,
28+see http://bialix.com/scmproj/docs/.
29+"""
30
31 version_info = (0, 4, 6, 'dev', 0)
32
33
34=== modified file 'cli.py'
35--- cli.py 2009-03-26 13:19:35 +0000
36+++ cli.py 2009-11-20 11:40:24 +0000
37@@ -66,17 +66,17 @@
38 create ./proj.
39
40 To get both project control branch and component branches use command
41- without --control-branch-only option:
42+ without --control-branch-only option::
43
44 bzr project-get FROM_LOCATION [TO_LOCATION]
45
46- To get only control branch of the project use command as:
47+ To get only control branch of the project use command as::
48
49 bzr project-get --control-branch-only FROM_LOCATION [TO_LOCATION]
50
51 When you already have a local copy of a project with a control branch
52 but without its components, and want to get component branches, then
53- run this command from project root directory:
54+ run this command from project root directory::
55
56 bzr project-get --components-only
57
58@@ -255,11 +255,13 @@
59 class cmd_project_command(Command):
60 """Run some command(s) for project components.
61
62- NOTE: run this command from the root of local project copy.
63+ .. note::
64+
65+ Run this command from the root of local project copy.
66
67 Option --cd-relpath (-C) will force execution of command(s) in the
68 components working directories. It's equal to have "cd {RELPATH}"
69- prefixed to each command. This is default behavior, if you need
70+ prefixed to each command. This is default behavior. If you need
71 to suppress automatic directory change, please use --no-cd option.
72 """
73 _see_also = ['chdir']
74@@ -288,12 +290,12 @@
75 class cmd_chdir(Command):
76 """Run bzr command in another directory.
77
78- This command change current directory for another one and then
79- launch the bzr command provided as argument, e.g.:
80+ This command changes the current directory to another one and then
81+ launches the bzr command provided as the argument, e.g.::
82
83 bzr chdir foo/bar -- missing http://example.com/spam
84
85- This equals to:
86+ This is equivalent to::
87
88 # remember $CWD
89 cd foo/bar
90@@ -304,13 +306,16 @@
91 features in core bzr commands for batch processing.
92 Intended to use with command `project-command`.
93
94- NOTE: You always should use '--' after directory you want to cd
95- and before actual subcommand you want to execute in that directory.
96- Otherwise it's not possible to pass options to the subcommand, e.g.
97+ .. note::
98+
99+ You always should use ``--`` after directory you want to cd
100+ and before actual subcommand you want to execute in that directory.
101+ Otherwise it's not possible to pass options to the subcommand, e.g.::
102
103 bzr chdir foo/bar -- missing --line http://example.com/spam
104
105- This command will not work without '--' between 'foo/bar' and 'missing'.
106+ This command will not work without ``--`` between ``foo/bar``
107+ and ``missing``.
108 """
109 aliases = ['cd']
110 takes_args = ['directory', 'argv+']

Subscribers

People subscribed via source and target branches