~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/smart/request.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2009-07-27 09:33:30 UTC
  • mfrom: (4556.2.10 hpss-push-tags)
  • Revision ID: pqm@pqm.ubuntu.com-20090727093330-882xn6s1tt1zbnw6
(andrew) Add Branch.set_tags_bytes verb, removing more VFS calls.

Show diffs side-by-side

added added

removed removed

Lines of Context:
398
398
    elif isinstance(err, errors.TokenMismatch):
399
399
        return ('TokenMismatch', err.given_token, err.lock_token)
400
400
    elif isinstance(err, errors.LockContention):
401
 
        return ('LockContention', err.lock, err.msg)
 
401
        return ('LockContention',)
402
402
    # Unserialisable error.  Log it, and return a generic error
403
403
    trace.log_exception_quietly()
404
404
    return ('error', str(err))
451
451
    'Branch.get_tags_bytes', 'bzrlib.smart.branch',
452
452
    'SmartServerBranchGetTagsBytes')
453
453
request_handlers.register_lazy(
 
454
    'Branch.set_tags_bytes', 'bzrlib.smart.branch',
 
455
    'SmartServerBranchSetTagsBytes')
 
456
request_handlers.register_lazy(
454
457
    'Branch.get_stacked_on_url', 'bzrlib.smart.branch', 'SmartServerBranchRequestGetStackedOnURL')
455
458
request_handlers.register_lazy(
456
459
    'Branch.last_revision_info', 'bzrlib.smart.branch', 'SmartServerBranchRequestLastRevisionInfo')