~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/errors.py

  • Committer: Martin Pool
  • Date: 2005-07-11 03:27:43 UTC
  • Revision ID: mbp@sourcefrog.net-20050711032743-a3a75b7f82975e7f
- Optionally raise EmptyCommit if there are no changes.  Test for this.

Show diffs side-by-side

added added

removed removed

Lines of Context:
66
66
            Exception.__init__(self, e)
67
67
        else:
68
68
            Exception.__init__(self)
 
69
 
 
70
 
 
71
class EmptyCommit(Exception):
 
72
    """Commit failed because nothing was changed."""