~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/fetch.py

  • Committer: Jelmer Vernooij
  • Date: 2011-05-20 08:25:15 UTC
  • mto: This revision was merged to the branch mainline in revision 5903.
  • Revision ID: jelmer@samba.org-20110520082515-lb5zok499a6q3g7g
Review feedback from Andrew: use NotImplementedError instead of UnsupportedOperation, use simpler build_commit rather than build_snapshot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
384
384
                'Incomplete FetchSpecFactory: %r' % (self.__dict__,))
385
385
        if len(self._explicit_rev_ids) == 0 and self.source_branch is None:
386
386
            if self.limit is not None:
387
 
                raise errors.UnsupportedOperation(
 
387
                raise NotImplementedError(
388
388
                    "limit is only supported with a source branch set")
389
389
            # Caller hasn't specified any revisions or source branch
390
390
            if self.target_repo_kind == TargetRepoKinds.EMPTY: