~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/repository.py

  • Committer: Robert Collins
  • Date: 2009-03-16 05:08:19 UTC
  • mfrom: (4147 +trunk)
  • mto: This revision was merged to the branch mainline in revision 4149.
  • Revision ID: robertc@robertcollins.net-20090316050819-unhkpvsvu3mzaore
NEWS conflicts.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1139
1139
            raise AssertionError(
1140
1140
                "fetch_spec and revision_id are mutually exclusive.")
1141
1141
        if self.is_in_write_group():
1142
 
            raise errors.BzrError("May not fetch while in a write group.")
 
1142
            raise errors.InternalBzrError(
 
1143
                "May not fetch while in a write group.")
1143
1144
        # fast path same-url fetch operations
1144
1145
        if self.has_same_location(source) and fetch_spec is None:
1145
1146
            # check that last_revision is in 'from' and then return a
2617
2618
    InterRepository.get(other).method_name(parameters).
2618
2619
    """
2619
2620
 
2620
 
    _walk_to_common_revisions_batch_size = 1
 
2621
    _walk_to_common_revisions_batch_size = 50
2621
2622
    _optimisers = []
2622
2623
    """The available optimised InterRepository types."""
2623
2624
 
3298
3299
    calculated for (source, target._real_repository).
3299
3300
    """
3300
3301
 
3301
 
    _walk_to_common_revisions_batch_size = 50
3302
 
 
3303
3302
    def __init__(self, source, target):
3304
3303
        InterRepository.__init__(self, source, target)
3305
3304
        self._real_inter = None
3370
3369
    uses an RPC for autopacking.
3371
3370
    """
3372
3371
 
3373
 
    _walk_to_common_revisions_batch_size = 50
3374
 
 
3375
3372
    @staticmethod
3376
3373
    def is_compatible(source, target):
3377
3374
        from bzrlib.repofmt.pack_repo import RepositoryFormatPack