Merge lp:~lifeless/bzr/commit into lp:bzr
Proposed by
Robert Collins
on 2010-04-07
| Status: | Merged |
|---|---|
| Approved by: | John A Meinel on 2010-04-07 |
| Approved revision: | no longer in the revision history of 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 | 2010-04-07 | Needs Fixing on 2010-04-07 | |
|
Review via email:
|
|||
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.
lp:~lifeless/bzr/commit
updated
on 2010-04-07
- 5138. By Canonical.com Patch Queue Manager <email address hidden> on 2010-04-07
-
(robertc) bzr commit will prompt before using a commit message that was
generated by a template and not edited by the user. (Robert Collins)

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.