~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/commit.py

  • Committer: Daniel Watkins
  • Date: 2007-09-04 23:14:42 UTC
  • mto: This revision was merged to the branch mainline in revision 2796.
  • Revision ID: d.m.watkins@warwick.ac.uk-20070904231442-4ux6nn86qa13gh2g
Added call to CommitReport.started hook.

Show diffs side-by-side

added added

removed removed

Lines of Context:
300
300
            self._gather_parents()
301
301
            if len(self.parents) > 1 and self.specific_files:
302
302
                raise errors.CannotCommitSelectedFileMerge(self.specific_files)
303
 
            
 
303
 
304
304
            # Collect the changes
305
305
            self._set_progress_stage("Collecting changes",
306
306
                    entries_title="Directory")
307
307
            self.builder = self.branch.get_commit_builder(self.parents,
308
308
                self.config, timestamp, timezone, committer, revprops, rev_id)
309
309
            try:
 
310
                # find the location being committed to
 
311
                if self.bound_branch:
 
312
                    master_location = self.master_branch.base
 
313
                else:
 
314
                    master_location = self.branch.base
 
315
 
 
316
                # report the start of the commit
 
317
                self.reporter.started(new_revno, self.rev_id, master_location)
 
318
 
310
319
                self._update_builder_with_changes()
311
320
                self._check_pointless()
312
321