Merge lp:~benji/lpsetup/bug-1016645-add-command-line-options into lp:lpsetup
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Benji York | ||||
Approved revision: | 46 | ||||
Merged at revision: | 42 | ||||
Proposed branch: | lp:~benji/lpsetup/bug-1016645-add-command-line-options | ||||
Merge into: | lp:lpsetup | ||||
Diff against target: | 0 lines | ||||
To merge this branch: | bzr merge lp:~benji/lpsetup/bug-1016645-add-command-line-options | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Benji York (community) | Approve | ||
Gary Poster (community) | Approve | ||
Review via email: mp+112588@code.launchpad.net |
Commit message
add some command-line options to the get command from the LEP
Description of the change
This branch (mostly, see below) finishes the work on bug 1016645 by
adding command-line options to the "get" subcommand.
Two things from that bug were not done: the first was adding a
"repository" optional argument because --directory already does that.
The second undone thing is the adding of a "branch" argument to specify
one other than "devel". I couldn't find a non-super-invasive way of
implementing that functionality and since it is listed as optional, I
decided not to further overrun my personal timebox. If it is in fact
non-optional, then I can do that next in a different branch.
Tests: no new tests were needed but the existing tests spotted at least
one bug, so that was nice.
Lint: the pocketlint report is clean
Thank you for this branch. Cleaning out the no-longer-working doctests is nice too, though hooking them up again, insofar as they actually were documentation, might not have been horrible. Thank you also for changing "directory" to "repository".
I don't want to forget the branch argument: if we have time, we should add it. Please add a low priority card to the kanban board for this task.
Using get to update an existing checkout is interesting, and I'm not sure it is the right thing. That's the intended domain of update, which also is supposed to shelve changes before the pull and unshelve them after the pull. I suggest that we rip that behavior out from get. (Note that IMO we can also rip the branch command too, if that makes anything easier; but that can wait till another branch too. Note further that we can rip out the install command, but that's trickier because lxcinstall defers to it ATM, so I definitely think that ripping install out needs to be its own branch.)
I was curious about the "Repository {0} is corrupted" stuff when I saw it too...did you check with frankban before you removed it? If not, please do. I think either removing it or commenting on why we think it is necessary are both good possible directions.
If there is no sandbox_dir, and only a checkout_dir, can we infer that the checkout is actually a branch (i.e., lightweight=False)?
ISTR someone was going to check on why we have --2a as an argument. That should be the default for all versions of bzr that we encounter. If it is not, I think a comment is appropriate. Otherwise, let's remove it.
I skimmed the rest, and it looked good. I'm not going to approve pending changes because I think there may need to be a discussion about one or the both of inferring the "lightweight" value and ripping out get's "update" behavior. If someone else wants to take over the rest of the review, that would be cool.
Thanks again,
Gary