Merge lp:~frankban/lpsetup/branch-subcommand into lp:lpsetup
| Status: | Merged |
|---|---|
| Approved by: | Graham Binns on 2012-05-16 |
| Approved revision: | 36 |
| Merged at revision: | 24 |
| Proposed branch: | lp:~frankban/lpsetup/branch-subcommand |
| Merge into: | lp:lpsetup |
| Diff against target: |
466 lines (+240/-24) 10 files modified
lpsetup/__init__.py (+1/-1) lpsetup/cli.py (+2/-0) lpsetup/handlers.py (+21/-0) lpsetup/settings.py (+15/-9) lpsetup/subcommands/branch.py (+88/-0) lpsetup/subcommands/install.py (+33/-11) lpsetup/subcommands/lxcinstall.py (+7/-3) lpsetup/tests/test_handlers.py (+41/-0) lpsetup/tests/test_utils.py (+17/-0) lpsetup/utils.py (+15/-0) |
| To merge this branch: | bzr merge lp:~frankban/lpsetup/branch-subcommand |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Graham Binns (community) | code | 2012-05-15 | Approve on 2012-05-16 |
|
Review via email:
|
|||
Description of the Change
== Summary ==
This branch adds the *branch* subcommand to *lp-setup*.
The branch subcommand can be used to create and build a new Launchpad branch,
e.g.::
lp-setup branch bug-666
It is similar (and intended to replace) *rocketfuel-get*,
but adds some functionalities:
- it can be called by root (specifying the actual user with -u argument)
- it can be called specifying different launchpad repository and dependencies
paths (i.e. when you have multiple launchpad checkouts)
- `make schema` can be triggered after the branch is created (-S argument).
== Changes ==
Added a branch sub command.
Added a validator for branch parent and target.
Bumped version up: branch sub command.
Other minor fixes:
the *install* subcommand now changes the owner of `/srv/launchpad
Apparmor workaround has been fixed to not fail if the hack was already applied.
Better handling of bzr locations: now it is a separate step, and it takes
advantage of a customized config parser that parses bzr location files.
Updated *lxc-install* sub command to reflect the new step added in
the *install* one.
== Tests ==
$ nosetests
.......
Name Stmts Miss Cover Missing
-------
lpsetup 6 1 83% 16
lpsetup.argparser 125 6 95% 113, 221, 278-279, 298, 307
lpsetup.exceptions 6 0 100%
lpsetup.handlers 65 1 98% 57
lpsetup.settings 28 0 100%
lpsetup.subcommands 0 0 100%
lpsetup.utils 133 32 76% 96, 130-140, 155, 206, 216, 237-239, 257-263, 278-279, 291-297
-------
TOTAL 363 40 89%
-------
Ran 60 tests in 0.521s
OK
