Merge lp:~lifeless/bzr/commit into lp:bzr
Proposed by
Robert Collins
Status: | Merged |
---|---|
Approved by: | John A Meinel |
Approved revision: | no longer in the source branch. |
Merged at revision: | not available |
Proposed branch: | lp:~lifeless/bzr/commit |
Merge into: | lp:bzr |
Diff against target: |
158 lines (+57/-22) 4 files modified
NEWS (+4/-0) bzrlib/builtins.py (+20/-16) bzrlib/msgeditor.py (+17/-4) bzrlib/tests/blackbox/test_commit.py (+16/-2) |
To merge this branch: | bzr merge lp:~lifeless/bzr/commit |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
John A Meinel | Needs Fixing | ||
Review via email: mp+22920@code.launchpad.net |
Commit message
(robertc) bzr commit will prompt before using a commit message that was generated by a template and not edited by the user. (Robert Collins)
Description of the change
This branch slightly cleans up the cmd layer of commit, which I did while figuring out the best way to make the change. The functional change is to add a prompt before accepting an unaltered template file.
To post a comment you must log in.
You don't seem to have a test case for the 'failing' side. Where the user is prompted but they request to *not* commit.
That code path seems to:
return ""
Whereas the other code paths when the template file doesn't exist, or _run_editor fails:
return None
Otherwise it seems ok.