/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to fetch.py

Avoid confusion between different fetch functions with different semantics.

Show diffs side-by-side

added added

removed removed

Lines of Context:
469
469
        """See InterRepository.copy_content."""
470
470
        self.fetch(revision_id, pb, find_ghosts=False)
471
471
 
472
 
    def fetch(self, revision_id=None, pb=None, find_ghosts=False,
473
 
        mapping=None, fetch_spec=None):
474
 
        self.fetch_refs(revision_id=revision_id, pb=pb,
475
 
            find_ghosts=find_ghosts, mapping=mapping, fetch_spec=fetch_spec)
476
 
 
477
472
 
478
473
class InterGitNonGitRepository(InterGitRepository):
479
474
    """Base InterRepository that copies revisions from a Git into a non-Git
480
475
    repository."""
481
476
 
482
 
    def fetch_refs(self, revision_id=None, pb=None, find_ghosts=False,
 
477
    def fetch(self, revision_id=None, pb=None, find_ghosts=False,
483
478
              mapping=None, fetch_spec=None):
484
479
        if mapping is None:
485
480
            mapping = self.source.get_mapping()
626
621
        else:
627
622
            raise AssertionError
628
623
 
629
 
    def fetch_refs(self, revision_id=None, pb=None, find_ghosts=False,
 
624
    def fetch(self, revision_id=None, pb=None, find_ghosts=False,
630
625
              mapping=None, fetch_spec=None, branches=None):
631
626
        if mapping is None:
632
627
            mapping = self.source.get_mapping()