/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/commit.py

  • Committer: Michael Ellerman
  • Date: 2005-10-26 10:03:47 UTC
  • mfrom: (1185.16.116)
  • mto: (1185.16.126)
  • mto: This revision was merged to the branch mainline in revision 1488.
  • Revision ID: michael@ellerman.id.au-20051026100347-bb0b2bd42f7953f2
MergeĀ mainline.

Show diffs side-by-side

added added

removed removed

Lines of Context:
266
266
 
267
267
            self._record_inventory()
268
268
            self._make_revision()
269
 
            self.reporter.completed(self.branch.revno()+1, self.rev_id)
270
269
            self.branch.append_revision(self.rev_id)
271
270
            self.branch.set_pending_merges([])
 
271
            self.reporter.completed(self.branch.revno()+1, self.rev_id)
 
272
            if self.config.post_commit() is not None:
 
273
                hooks = self.config.post_commit().split(' ')
 
274
                # this would be nicer with twisted.python.reflect.namedAny
 
275
                for hook in hooks:
 
276
                    result = eval(hook + '(branch, rev_id)',
 
277
                                  {'branch':self.branch,
 
278
                                   'bzrlib':bzrlib,
 
279
                                   'rev_id':self.rev_id})
272
280
        finally:
273
281
            self.branch.unlock()
274
282