/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 processors/generic_processor.py

minor comment clean-ups

Show diffs side-by-side

added added

removed removed

Lines of Context:
512
512
        file_ids = {}
513
513
        for revision_id in revision_ids:
514
514
            inv = self.repo.revision_tree(revision_id).inventory
515
 
            # Cache the inventoires while we're at it
 
515
            # Cache the inventories while we're at it
516
516
            self.cache_mgr.inventories[revision_id] = inv
517
517
            for path, ie in inv.iter_entries():
518
518
                file_ids[path] = ie.file_id
553
553
        self._set_tag(cmd.id, cmd.from_)
554
554
 
555
555
    def _set_tag(self, name, from_):
556
 
        """Define a tag given a name an import 'from' reference."""
 
556
        """Define a tag given a name and import 'from' reference."""
557
557
        bzr_tag_name = name.decode('utf-8', 'replace')
558
558
        bzr_rev_id = self.cache_mgr.revision_ids[from_]
559
559
        self.tags[bzr_tag_name] = bzr_rev_id
695
695
        # Track the heads and get the real parent list
696
696
        parents = _track_heads(self.command, self.cache_mgr)
697
697
 
698
 
        # Get the parent inventories
 
698
        # Convert the parent commit-ids to bzr revision-ids
699
699
        if parents:
700
700
            self.parents = [self.cache_mgr.revision_ids[p]
701
701
                for p in parents]
870
870
        """Get the inventories for revision-ids.
871
871
        
872
872
        This is a callback used by the RepositoryLoader to
873
 
        speed up inventory reconstruction."""
 
873
        speed up inventory reconstruction.
 
874
        """
874
875
        present = []
875
876
        inventories = []
876
877
        # If an inventory is in the cache, we assume it was
996
997
    def _get_matching_branches(self):
997
998
        """Get the Bazaar branches.
998
999
 
999
 
        :return: default_tip, branch_tips, lost_tips where
 
1000
        :return: default_tip, branch_tips, lost_heads where
1000
1001
          default_tip = the last commit mark for the default branch
1001
1002
          branch_tips = a list of (branch,tip) tuples for other branches.
1002
1003
          lost_heads = a list of (bazaar-name,revision) for branches that