~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/revfile.py

  • Committer: Martin Pool
  • Date: 2005-08-02 23:14:41 UTC
  • Revision ID: mbp@sourcefrog.net-20050802231441-d738a6e6ffd03c3e
- new error RevisionNotPresent

- raise this when trying to fetch a revision that's mentioned but not 
  in the revision store

- Store raises an IndexError from getitem method if key is not found

Show diffs side-by-side

added added

removed removed

Lines of Context:
105
105
class LimitHitException(Exception):
106
106
    pass
107
107
 
108
 
class Revfile:
 
108
class Revfile(object):
109
109
    def __init__(self, basename, mode):
110
110
        # TODO: Lock file  while open
111
111