Merge lp:~benji/lpsetup/add-get-subcommand into lp:lpsetup
| Status: | Merged | ||||
|---|---|---|---|---|---|
| Approved by: | Brad Crittenden on 2012-06-25 | ||||
| Approved revision: | 34 | ||||
| Merged at revision: | 32 | ||||
| Proposed branch: | lp:~benji/lpsetup/add-get-subcommand | ||||
| Merge into: | lp:lpsetup | ||||
| Diff against target: |
563 lines (+263/-167) 6 files modified
lpsetup/cli.py (+2/-0) lpsetup/subcommands/get.py (+241/-0) lpsetup/subcommands/inithost.py (+2/-2) lpsetup/subcommands/install.py (+7/-81) lpsetup/subcommands/lxcinstall.py (+0/-2) lpsetup/subcommands/update.py (+11/-82) |
||||
| To merge this branch: | bzr merge lp:~benji/lpsetup/add-get-subcommand | ||||
| Related bugs: |
|
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Brad Crittenden (community) | 2012-06-25 | Approve on 2012-06-25 | |
|
Review via email:
|
|||
Commit Message
create a "get" command by cannibalizing the "update" and "install" commands
Description of the Change
This branch moves all the steps out of "update" and one out of "install" into a new "get" command and then refactors "update" and "install" to continue to work as before.
Tests: the existing tests pass, no new tests were added; the install and update commands were run to check that they still appear to work as well as running the new "get" command.
Lint: the lint report is clean
| Benji York (benji) wrote : | # |
> * Please add a period to the file docstring.
Done.
> * The LP_REPOS[1] vs [0] part in setup_codebase is confusing. Perhaps if you
> assigned it to a descriptive variable and used it in the command it might be
> easier to understand/
Done.
> * Do we need to specify --2a for init-repo?
I have no idea. As sou note, that was pre-existing. I have emailed
frankban to see why it is there and have asked that he add a comment
about the motivation if it is.
| Brad Crittenden (bac) wrote : | # |
There are additional revisions which have not been approved in review. Please seek review and approval of these new revisions.
| Gary Poster (gary) wrote : | # |
I added a kanban card for adding he lightweight checkout support.
There are a number of other important details in the bug/kanban description that have not yet been implemented, as far as I can tell. The repository argument, which should mean that it is created only if needed, looks missing to me–it is always created. The destination directory is hard coded. In general, the command needs to be reviewed to fit into the requested plan. If the plan is unclear, that's very understandable, but we still need to try and share knowledge and follow it.
This is probably from the original, but i'd also like to look through the whole file to make sure bar terminology is used correctly, be i branch, repository, or checkout.

* Please add a period to the file docstring.
* The LP_REPOS[1] vs [0] part in setup_codebase is confusing. Perhaps if you assigned it to a descriptive variable and used it in the command it might be easier to understand/ self-documentin g.
* Do we need to specify --2a for init-repo?
I know those existed in the code you refactored.
Otherwise it looks great.