Merge lp:~nmb/bzr-testrunner/update-docs-for-plugin-guide into lp:bzr-testrunner

Proposed by Neil Martinsen-Burrell
Status: Merged
Merged at revision: not available
Proposed branch: lp:~nmb/bzr-testrunner/update-docs-for-plugin-guide
Merge into: lp:bzr-testrunner
Diff against target: 93 lines (+52/-16)
2 files modified
README (+26/-15)
__init__.py (+26/-1)
To merge this branch: bzr merge lp:~nmb/bzr-testrunner/update-docs-for-plugin-guide
Reviewer Review Type Date Requested Status
bzr-testrunner Developers Pending
Review via email: mp+14825@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Neil Martinsen-Burrell (nmb) wrote :

This improves the documentation so that it can easily be included in the Bazaar Plugins Guide.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'README'
--- README 2009-04-22 14:31:59 +0000
+++ README 2009-11-13 16:15:20 +0000
@@ -1,28 +1,39 @@
1--------------------1==============
2 bzr-testrunner 2bzr-testrunner
3--------------------3==============
44
5This is a "Poor man's PQM" that will run a command specified branch.conf and5This is a "Poor man's PQM" (https://launchpad.net/pqm) that will run a command
6only allow new changes in the branch if the return code of that command is 0.6specified in branch.conf and only allow new changes in the branch if the return
7It is intended to run a testsuite and verify that it passes before allowing7code of that command is 0. It is intended to run a test suite and verify that
8commits and pushes, but it should have no problem running any arbitrary command.8it passes before allowing commits and pushes, but it should have no problem
9running any arbitrary command.
10
11Installation
12------------
13
14To install the plugin, simply use Bazaar to branch this directory into your
15Bazaar plugins directory (usually ~/.bazaar/plugins)::
16
17 $ cd ~/.bazaar/plugins
18 $ bzr branch lp:bzr-testrunner testrunner
19
920
10Usage21Usage
11---------22-----
1223
131) Install to bazaar plugins.24Set 'pre_change_branch_tip_test_command' to the command you'd like to run in
142) Set 'pre_change_branch_tip_test_command' to the command you'd like to run in branch.conf.25branch.conf. When you make a commit, the command specified here will be run in
153) You're done. When a commit or push is made, the latest code will be26a temporary directory with the new code. If the command does not return 0,
16 exported to a temporary directory and the test command will be run.27then the commit will not run.
1728
18TODO29TODO
19---------30----
2031
21* Parameterize messages32* Parameterize messages
22* Check across protocols... tested on local branches and bzr+ssh so far33* Check across protocols... tested on local branches and bzr+ssh so far
2334
24Authors35Authors
25---------36-------
2637
27james_w38james_w
28phinze39phinze
2940
=== modified file '__init__.py'
--- __init__.py 2009-04-22 14:32:09 +0000
+++ __init__.py 2009-11-13 16:15:20 +0000
@@ -1,4 +1,29 @@
1"""Run a command before allowing a commit."""1"""Run a command before allowing a commit.
2
3This is a "Poor man's PQM" (https://launchpad.net/pqm) that will run a command
4specified in branch.conf and only allow new changes in the branch if the return
5code of that command is 0. It is intended to run a test suite and verify that
6it passes before allowing commits and pushes, but it should have no problem
7running any arbitrary command.
8
9Installation
10------------
11
12To install the plugin, simply use Bazaar to branch this directory into your
13Bazaar plugins directory (usually ~/.bazaar/plugins)::
14
15 $ cd ~/.bazaar/plugins
16 $ bzr branch lp:bzr-testrunner testrunner
17
18
19Usage
20-----
21
22Set 'pre_change_branch_tip_test_command' to the command you'd like to run in
23branch.conf. When you make a commit, the command specified here will be run in
24a temporary directory with the new code. If the command does not return 0,
25then the commit will not run.
26"""
227
3import sys28import sys
4import os29import os

Subscribers

People subscribed via source and target branches