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
=== modified file '__init__.py'
--- __init__.py 2009-10-23 11:48:51 +0000
+++ __init__.py 2009-11-20 11:40:24 +0000
@@ -8,7 +8,27 @@
8# Implementation of LazyCommandProxy:8# Implementation of LazyCommandProxy:
9# (C) 2008 Lukáš Lalinský <lalinsky AT gmail com>9# (C) 2008 Lukáš Lalinský <lalinsky AT gmail com>
1010
11"""Organizing collection of vcs branches as complex project."""11"""Organise and manage a collection of VCS branches as a complex project.
12
13Here is a summary of the commands added.
14
15==================== =======================================================
16Command Description
17==================== =======================================================
18project-init Initialize new project meta-directory
19project-get Get a copy of an existing project on your local disk
20project-commit Commit changes in components working copies
21project-info Show info summary for project
22project-update Update components of the project from their origins
23project-publish Publish (push back) changes from components branches
24 and control branch
25project-command Run some command(s) for project components
26chdir Run bzr command in another directory
27==================== =======================================================
28
29For tutorials, developer documentation and comparisons with other systems,
30see http://bialix.com/scmproj/docs/.
31"""
1232
13version_info = (0, 4, 6, 'dev', 0)33version_info = (0, 4, 6, 'dev', 0)
1434
1535
=== modified file 'cli.py'
--- cli.py 2009-03-26 13:19:35 +0000
+++ cli.py 2009-11-20 11:40:24 +0000
@@ -66,17 +66,17 @@
66 create ./proj.66 create ./proj.
6767
68 To get both project control branch and component branches use command68 To get both project control branch and component branches use command
69 without --control-branch-only option:69 without --control-branch-only option::
7070
71 bzr project-get FROM_LOCATION [TO_LOCATION]71 bzr project-get FROM_LOCATION [TO_LOCATION]
7272
73 To get only control branch of the project use command as:73 To get only control branch of the project use command as::
7474
75 bzr project-get --control-branch-only FROM_LOCATION [TO_LOCATION]75 bzr project-get --control-branch-only FROM_LOCATION [TO_LOCATION]
7676
77 When you already have a local copy of a project with a control branch77 When you already have a local copy of a project with a control branch
78 but without its components, and want to get component branches, then78 but without its components, and want to get component branches, then
79 run this command from project root directory:79 run this command from project root directory::
8080
81 bzr project-get --components-only81 bzr project-get --components-only
8282
@@ -255,11 +255,13 @@
255class cmd_project_command(Command):255class cmd_project_command(Command):
256 """Run some command(s) for project components.256 """Run some command(s) for project components.
257257
258 NOTE: run this command from the root of local project copy.258 .. note::
259
260 Run this command from the root of local project copy.
259261
260 Option --cd-relpath (-C) will force execution of command(s) in the262 Option --cd-relpath (-C) will force execution of command(s) in the
261 components working directories. It's equal to have "cd {RELPATH}"263 components working directories. It's equal to have "cd {RELPATH}"
262 prefixed to each command. This is default behavior, if you need264 prefixed to each command. This is default behavior. If you need
263 to suppress automatic directory change, please use --no-cd option.265 to suppress automatic directory change, please use --no-cd option.
264 """266 """
265 _see_also = ['chdir']267 _see_also = ['chdir']
@@ -288,12 +290,12 @@
288class cmd_chdir(Command):290class cmd_chdir(Command):
289 """Run bzr command in another directory.291 """Run bzr command in another directory.
290292
291 This command change current directory for another one and then293 This command changes the current directory to another one and then
292 launch the bzr command provided as argument, e.g.:294 launches the bzr command provided as the argument, e.g.::
293295
294 bzr chdir foo/bar -- missing http://example.com/spam296 bzr chdir foo/bar -- missing http://example.com/spam
295297
296 This equals to:298 This is equivalent to::
297299
298 # remember $CWD300 # remember $CWD
299 cd foo/bar301 cd foo/bar
@@ -304,13 +306,16 @@
304 features in core bzr commands for batch processing.306 features in core bzr commands for batch processing.
305 Intended to use with command `project-command`.307 Intended to use with command `project-command`.
306308
307 NOTE: You always should use '--' after directory you want to cd309 .. note::
308 and before actual subcommand you want to execute in that directory.310
309 Otherwise it's not possible to pass options to the subcommand, e.g.311 You always should use ``--`` after directory you want to cd
312 and before actual subcommand you want to execute in that directory.
313 Otherwise it's not possible to pass options to the subcommand, e.g.::
310314
311 bzr chdir foo/bar -- missing --line http://example.com/spam315 bzr chdir foo/bar -- missing --line http://example.com/spam
312316
313 This command will not work without '--' between 'foo/bar' and 'missing'.317 This command will not work without ``--`` between ``foo/bar``
318 and ``missing``.
314 """319 """
315 aliases = ['cd']320 aliases = ['cd']
316 takes_args = ['directory', 'argv+']321 takes_args = ['directory', 'argv+']

Subscribers

People subscribed via source and target branches