~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/commit.py

Make commit verbose mode work!.

Show diffs side-by-side

added added

removed removed

Lines of Context:
131
131
        note("%s %s", change, path)
132
132
 
133
133
    def completed(self, revno, rev_id):
134
 
        note('committed r%d {%s}', revno, rev_id)
 
134
        note('Committed revision %d.', revno)
135
135
    
136
136
    def deleted(self, file_id):
137
137
        note('deleted %s', file_id)
179
179
               verbose=False,
180
180
               revprops=None,
181
181
               working_tree=None,
182
 
               local=False):
 
182
               local=False,
 
183
               reporter=None,
 
184
               config=None):
183
185
        """Commit working copy as a new revision.
184
186
 
185
187
        branch -- the deprecated branch to commit to. New callers should pass in 
234
236
        if revprops is not None:
235
237
            self.revprops.update(revprops)
236
238
 
 
239
        if reporter is None and self.reporter is None:
 
240
            self.reporter = NullCommitReporter()
 
241
        else:
 
242
            self.reporter = reporter
 
243
 
237
244
        self.work_tree.lock_write()
238
245
        try:
239
246
            # setup the bound branch variables as needed.
331
338
            self.work_tree.set_last_revision(self.rev_id, precursor)
332
339
            # now the work tree is up to date with the branch
333
340
            
334
 
            self.reporter.completed(self.branch.revno()+1, self.rev_id)
 
341
            self.reporter.completed(self.branch.revno(), self.rev_id)
335
342
            if self.config.post_commit() is not None:
336
343
                hooks = self.config.post_commit().split(' ')
337
344
                # this would be nicer with twisted.python.reflect.namedAny