/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/smart/branch.py

  • Committer: Martin Pool
  • Date: 2007-10-05 04:43:17 UTC
  • mto: This revision was merged to the branch mainline in revision 2901.
  • Revision ID: mbp@sourcefrog.net-20071005044317-od7a5i2bi5fp0o4o
Pass back LockFailed from smart server lock methods

Show diffs side-by-side

added added

removed removed

Lines of Context:
135
135
            return FailedSmartServerResponse(('TokenMismatch',))
136
136
        except errors.UnlockableTransport:
137
137
            return FailedSmartServerResponse(('UnlockableTransport',))
 
138
        except errors.LockFailed, e:
 
139
            return FailedSmartServerResponse(('LockFailed', str(e.lock), str(e.why)))
138
140
        branch.repository.leave_lock_in_place()
139
141
        branch.leave_lock_in_place()
140
142
        branch.unlock()