/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: Robert Collins
  • Date: 2007-06-28 03:21:59 UTC
  • mto: This revision was merged to the branch mainline in revision 2560.
  • Revision ID: robertc@robertcollins.net-20070628032159-ru3ztg712ns2dpip
Show hook names during commit.

Show diffs side-by-side

added added

removed removed

Lines of Context:
338
338
            rev_tree = self.builder.revision_tree()
339
339
            self.work_tree.set_parent_trees([(self.rev_id, rev_tree)])
340
340
            self.reporter.completed(new_revno, self.rev_id)
341
 
 
342
 
            # Process the post commit hooks, if any
343
 
            self._emit_progress_set_stage("Running post commit hooks")
344
341
            self._process_hooks(old_revno, new_revno)
345
342
        finally:
346
343
            self._cleanup()
469
466
 
470
467
    def _process_hooks(self, old_revno, new_revno):
471
468
        """Process any registered commit hooks."""
 
469
        # Process the post commit hooks, if any
 
470
        self._emit_progress_set_stage("Running post commit hooks")
472
471
        # old style commit hooks - should be deprecated ? (obsoleted in
473
472
        # 0.15)
474
473
        if self.config.post_commit() is not None:
494
493
        else:
495
494
            old_revid = bzrlib.revision.NULL_REVISION
496
495
        for hook in Branch.hooks['post_commit']:
 
496
            self.pb_stage_name = "Running post commit hooks [%s]" % \
 
497
                Branch.hooks.get_hook_name(hook)
 
498
            self._emit_progress()
497
499
            hook(hook_local, hook_master, old_revno, old_revid, new_revno,
498
500
                self.rev_id)
499
501