/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/mutabletree.py

  • Committer: Aaron Bentley
  • Date: 2006-11-23 21:37:24 UTC
  • mto: This revision was merged to the branch mainline in revision 2155.
  • Revision ID: abentley@panoramicfeedback.com-20061123213724-pbn0jfgtwg3cln9h
Provide a message_callback parameter to tree.commit

Show diffs side-by-side

added added

removed removed

Lines of Context:
118
118
            revprops = {}
119
119
        if not 'branch-nick' in revprops:
120
120
            revprops['branch-nick'] = self.branch.nick
 
121
        if message is not None:
 
122
            kwargs['message_callback'] = lambda: message
121
123
        # args for wt.commit start at message from the Commit.commit method,
122
124
        # but with branch a kwarg now, passing in args as is results in the
123
125
        #message being used for the branch
124
 
        args = (DEPRECATED_PARAMETER, message, ) + args
 
126
        args = (DEPRECATED_PARAMETER, DEPRECATED_PARAMETER, ) + args
125
127
        committed_id = commit.Commit().commit(working_tree=self,
126
128
            revprops=revprops, *args, **kwargs)
127
129
        return committed_id