~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/commit.py

  • Committer: Aaron Bentley
  • Date: 2007-12-21 06:34:27 UTC
  • mto: This revision was merged to the branch mainline in revision 3140.
  • Revision ID: aaron.bentley@utoronto.ca-20071221063427-pavy148wf806gf11
Fix commit for a checkout sharing a repo with its branch (abentley, #177592)

Show diffs side-by-side

added added

removed removed

Lines of Context:
381
381
            # Upload revision data to the master.
382
382
            # this will propagate merged revisions too if needed.
383
383
            if self.bound_branch:
384
 
                self._set_progress_stage("Uploading data to master branch")
385
 
                self.master_branch.repository.fetch(self.branch.repository,
386
 
                                                    revision_id=self.rev_id)
 
384
                if not self.master_branch.repository.has_same_location(
 
385
                        self.branch.repository):
 
386
                    self._set_progress_stage("Uploading data to master branch")
 
387
                    self.master_branch.repository.fetch(self.branch.repository,
 
388
                        revision_id=self.rev_id)
387
389
                # now the master has the revision data
388
390
                # 'commit' to the master first so a timeout here causes the
389
391
                # local branch to be out of date