~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/errors.py

  • Committer: Daniel Watkins
  • Date: 2009-02-10 03:08:13 UTC
  • mto: (3995.1.1 ianc-integration)
  • mto: This revision was merged to the branch mainline in revision 3996.
  • Revision ID: daniel@daniel-watkins.co.uk-20090210030813-tb9tt438j9bpek9r
Added MustHaveWorkingTree error and accompanying test.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2937
2937
class UserAbort(BzrError):
2938
2938
 
2939
2939
    _fmt = 'The user aborted the operation.'
 
2940
 
 
2941
 
 
2942
class MustHaveWorkingTree(BzrError):
 
2943
 
 
2944
    _fmt = ("The branch '%(url)s'(%(format)s) cannot be branched without a"
 
2945
            " working tree.")
 
2946
 
 
2947
    def __init__(self, format, url):
 
2948
        BzrError.__init__(self, format=format, url=url)