~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/commit.py

  • Committer: Jelmer Vernooij
  • Date: 2011-03-13 22:22:43 UTC
  • mto: This revision was merged to the branch mainline in revision 5722.
  • Revision ID: jelmer@samba.org-20110313222243-d9il183py6ry0gry
Fix logic for raising ExcludesUnsupported exception. It's a pity we have no record-iter-changes-only formats in bzr.dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
402
402
        self._set_progress_stage("Collecting changes", counter=True)
403
403
        self.builder = self.branch.get_commit_builder(self.parents,
404
404
            self.config, timestamp, timezone, committer, self.revprops, rev_id)
405
 
        if (not self.builder.supports_record_entry_contents and
406
 
            not self.exclude):
 
405
        if not self.builder.supports_record_entry_contents and self.exclude:
407
406
            self.builder.abort()
408
407
            raise errors.ExcludesUnsupported(self.branch.repository)
409
408