Merge lp:~lifeless/bzr/commands into lp:bzr
Proposed by
Robert Collins
Status: | Merged |
---|---|
Approved by: | Andrew Bennetts |
Approved revision: | no longer in the source branch. |
Merged at revision: | not available |
Proposed branch: | lp:~lifeless/bzr/commands |
Merge into: | lp:bzr |
Diff against target: |
265 lines (+60/-23) 13 files modified
NEWS (+6/-0) bzrlib/commands.py (+38/-6) bzrlib/tests/commands/test_branch.py (+3/-3) bzrlib/tests/commands/test_cat.py (+1/-1) bzrlib/tests/commands/test_checkout.py (+2/-2) bzrlib/tests/commands/test_commit.py (+1/-1) bzrlib/tests/commands/test_init.py (+1/-1) bzrlib/tests/commands/test_init_repository.py (+1/-1) bzrlib/tests/commands/test_merge.py (+1/-2) bzrlib/tests/commands/test_missing.py (+1/-1) bzrlib/tests/commands/test_pull.py (+2/-2) bzrlib/tests/commands/test_push.py (+2/-2) bzrlib/tests/commands/test_update.py (+1/-1) |
To merge this branch: | bzr merge lp:~lifeless/bzr/commands |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Andrew Bennetts | Approve | ||
Review via email: mp+23068@code.launchpad.net |
Commit message
(robertc) Make Command.run safe to call directly. (Robert Collins)
Description of the change
This branch removes(deprecates) the helper function added in 2.1, Command.run_direct. run_direct is confusingly named (it is what was used to run with cleanups), and had the undesirable effect of making a previously safe to call function (command.run) unsafe to call. By decorating run, it is always safe to call run directly, and run stays both public for subclassing and public for calling.
Doing this fixes a number of bugs in bzrtools, loom and other plugins where the run method is currently called. We may wish to port this to 2.1 too, but I don't know if its considered 'minimal' enough.
To post a comment you must log in.
I think I like it, but I'm going to sleep on it over the weekend.