/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 git/errors.py

  • Committer: James Westby
  • Date: 2007-03-25 17:00:25 UTC
  • mto: (0.215.1 trunk)
  • mto: This revision was merged to the branch mainline in revision 6960.
  • Revision ID: jw+debian@jameswestby.net-20070325170025-gq0pgsuoe67n71hg
Error when a commit isn't found to avoid problems later.

A missing commit while doing revision_history will ow throw MissingCommitError
rather than falling over.

With no support for pack files and alternate object dirs then this may merely
indicate that they are in use.

With shallow repos and the like maybe a marker would want to be inserted
instead.

Show diffs side-by-side

added added

removed removed

Lines of Context:
44
44
 
45
45
  _type = 'blob'
46
46
 
 
47
class MissingCommitError(Exception):
 
48
  """Indicates that a commit was not found in the repository"""
 
49
 
 
50
  def __init__(self, sha, *args, **kwargs):
 
51
    Exception.__init__(self, "%s is not in the revision store" % sha)
 
52