~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/revisionspec.py

  • Committer: Aaron Bentley
  • Date: 2005-12-25 00:38:48 UTC
  • mto: (1185.67.11 bzr.revision-storage)
  • mto: This revision was merged to the branch mainline in revision 1550.
  • Revision ID: aaron.bentley@utoronto.ca-20051225003848-111ac71170cb2605
Renamed Branch.storage to Branch.repository

Show diffs side-by-side

added added

removed removed

Lines of Context:
57
57
        # TODO: otherwise, it should depend on how I was built -
58
58
        # if it's in_history(branch), then check revision_history(),
59
59
        # if it's in_store(branch), do the check below
60
 
        return self.branch.storage.has_revision(self.rev_id)
 
60
        return self.branch.repository.has_revision(self.rev_id)
61
61
 
62
62
    def __len__(self):
63
63
        return 2
68
68
        raise IndexError(index)
69
69
 
70
70
    def get(self):
71
 
        return self.branch.storage.get_revision(self.rev_id)
 
71
        return self.branch.repository.get_revision(self.rev_id)
72
72
 
73
73
    def __eq__(self, other):
74
74
        if type(other) not in (tuple, list, type(self)):
297
297
                    hour=hour, minute=minute, second=second)
298
298
        first = dt
299
299
        for i in range(len(revs)):
300
 
            r = branch.storage.get_revision(revs[i])
 
300
            r = branch.repository.get_revision(revs[i])
301
301
            # TODO: Handle timezone.
302
302
            dt = datetime.datetime.fromtimestamp(r.timestamp)
303
303
            if first <= dt:
319
319
        for r, b in ((revision_a, branch), (revision_b, other_branch)):
320
320
            if r is None:
321
321
                raise NoCommits(b)
322
 
        revision_source = MultipleRevisionSources(branch.storage,
323
 
                                                  other_branch.storage)
 
322
        revision_source = MultipleRevisionSources(branch.repository,
 
323
                                                  other_branch.repository)
324
324
        rev_id = common_ancestor(revision_a, revision_b, revision_source)
325
325
        try:
326
326
            revno = branch.revision_id_to_revno(rev_id)