[PATCH][TRIVIAL] missing import make_commit_message_template
Goffredo Baroncelli
kreijack at alice.it
Sun Dec 4 10:53:05 GMT 2005
Hi all,
the function 'make_commit_message_template' isn't imported in bzrlib.builtin;
the patch below fixes the problem.
$ bzr ci
bzr: ERROR: exceptions.NameError: global name 'make_commit_message_template' is not defined
at /home/ghigo/bazaar/bzr.dev/bzrlib/builtins.py line 1249
in run
$ ./bzr diff bzrlib/builtins.py
=== modified file 'bzrlib/builtins.py'
--- bzrlib/builtins.py
+++ bzrlib/builtins.py
@@ -1235,6 +1235,7 @@
from bzrlib.errors import (PointlessCommit, ConflictsInTree,
StrictCommitFailed)
from bzrlib.msgeditor import edit_commit_message
+ from bzrlib.msgeditor import make_commit_message_template
from bzrlib.status import show_status
from tempfile import TemporaryFile
import codecs
@@ -1246,7 +1247,7 @@
# message to a temporary file where it can be recovered
tree, selected_list = tree_files(selected_list)
if message is None and not file:
- template = make_commit_message_template(tree)
+ template = make_commit_message_template(tree,selected_list )
message = edit_commit_message(template)
if message is None:
raise BzrCommandError("please specify a commit message"
--
gpg key@ keyserver.linux.it: Goffredo Baroncelli (ghigo) <kreijack at inwind.it>
Key fingerprint = CE3C 7E01 6782 30A3 5B87 87C0 BB86 505C 6B2A CFF9
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20051204/859e1905/attachment.pgp
More information about the bazaar
mailing list