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

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2006-03-06 07:44:17 UTC
  • mfrom: (1553.5.64 bzr.mbp.locks)
  • Revision ID: pqm@pqm.ubuntu.com-20060306074417-344f1d83d99b9730
Integrate LockDirs into new format, etc

Show diffs side-by-side

added added

removed removed

Lines of Context:
300
300
        self.obj = obj
301
301
 
302
302
 
303
 
class BranchNotLocked(LockError):
304
 
    """Branch %(branch)r is not locked"""
305
 
    def __init__(self, branch):
306
 
        # XXX: sometimes called with a LockableFiles instance not a Branch
307
 
        self.branch = branch
 
303
class ObjectNotLocked(LockError):
 
304
    """%(obj)r is not locked"""
 
305
    # this can indicate that any particular object is not locked; see also
 
306
    # LockNotHeld which means that a particular *lock* object is not held by
 
307
    # the caller -- perhaps they should be unified.
 
308
    def __init__(self, obj):
 
309
        self.obj = obj
308
310
 
309
311
 
310
312
class ReadOnlyObjectDirtiedError(ReadOnlyError):
346
348
        self.lock = lock
347
349
 
348
350
 
349
 
class BranchNotLocked(LockError):
350
 
    """Branch %(branch)r not locked"""
351
 
    def __init__(self, branch):
352
 
        self.branch = branch
353
 
 
354
 
 
355
351
class PointlessCommit(BzrNewError):
356
352
    """No changes to commit"""
357
353