/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/request.py

  • Committer: Jelmer Vernooij
  • Date: 2011-11-25 17:54:52 UTC
  • mfrom: (6303 +trunk)
  • mto: This revision was merged to the branch mainline in revision 6321.
  • Revision ID: jelmer@samba.org-20111125175452-v0uwwxqcp97tzuzv
Merge bzr.dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
421
421
        return ('UnstackableBranchFormat', str(err.format), err.url)
422
422
    elif isinstance(err, errors.NotStacked):
423
423
        return ('NotStacked',)
 
424
    elif isinstance(err, errors.BzrCheckError):
 
425
        return ('BzrCheckError', err.msg)
424
426
    elif isinstance(err, UnicodeError):
425
427
        # If it is a DecodeError, than most likely we are starting
426
428
        # with a plain string
519
521
request_handlers.register_lazy(
520
522
    'append', 'bzrlib.smart.vfs', 'AppendRequest', info='mutate')
521
523
request_handlers.register_lazy(
 
524
    'Branch.break_lock', 'bzrlib.smart.branch',
 
525
    'SmartServerBranchBreakLock', info='idem')
 
526
request_handlers.register_lazy(
522
527
    'Branch.get_config_file', 'bzrlib.smart.branch',
523
528
    'SmartServerBranchGetConfigFile', info='read')
524
529
request_handlers.register_lazy(
525
530
    'Branch.get_parent', 'bzrlib.smart.branch', 'SmartServerBranchGetParent',
526
531
    info='read')
527
532
request_handlers.register_lazy(
 
533
    'Branch.put_config_file', 'bzrlib.smart.branch',
 
534
    'SmartServerBranchPutConfigFile', info='idem')
 
535
request_handlers.register_lazy(
528
536
    'Branch.get_tags_bytes', 'bzrlib.smart.branch',
529
537
    'SmartServerBranchGetTagsBytes', info='read')
530
538
request_handlers.register_lazy(
537
545
    'Branch.get_stacked_on_url', 'bzrlib.smart.branch',
538
546
    'SmartServerBranchRequestGetStackedOnURL', info='read')
539
547
request_handlers.register_lazy(
 
548
    'Branch.get_physical_lock_status', 'bzrlib.smart.branch',
 
549
    'SmartServerBranchRequestGetPhysicalLockStatus', info='read')
 
550
request_handlers.register_lazy(
540
551
    'Branch.last_revision_info', 'bzrlib.smart.branch',
541
552
    'SmartServerBranchRequestLastRevisionInfo', info='read')
542
553
request_handlers.register_lazy(
564
575
    'Branch.set_parent_location', 'bzrlib.smart.branch',
565
576
    'SmartServerBranchRequestSetParentLocation', info='idem')
566
577
request_handlers.register_lazy(
567
 
    'Branch.unlock', 'bzrlib.smart.branch', 'SmartServerBranchRequestUnlock',
568
 
    info='semi')
 
578
    'Branch.unlock', 'bzrlib.smart.branch',
 
579
    'SmartServerBranchRequestUnlock', info='semi')
 
580
request_handlers.register_lazy(
 
581
    'Branch.revision_id_to_revno', 'bzrlib.smart.branch',
 
582
    'SmartServerBranchRequestRevisionIdToRevno', info='read')
569
583
request_handlers.register_lazy(
570
584
    'BzrDir.cloning_metadir', 'bzrlib.smart.bzrdir',
571
585
    'SmartServerBzrDirRequestCloningMetaDir', info='read')
588
602
    'BzrDir.get_config_file', 'bzrlib.smart.bzrdir',
589
603
    'SmartServerBzrDirRequestConfigFile', info='read')
590
604
request_handlers.register_lazy(
 
605
    'BzrDir.destroy_branch', 'bzrlib.smart.bzrdir',
 
606
    'SmartServerBzrDirRequestDestroyBranch', info='semi')
 
607
request_handlers.register_lazy(
 
608
    'BzrDir.destroy_repository', 'bzrlib.smart.bzrdir',
 
609
    'SmartServerBzrDirRequestDestroyRepository', info='semi')
 
610
request_handlers.register_lazy(
 
611
    'BzrDir.has_workingtree', 'bzrlib.smart.bzrdir',
 
612
    'SmartServerBzrDirRequestHasWorkingTree', info='read')
 
613
request_handlers.register_lazy(
591
614
    'BzrDirFormat.initialize', 'bzrlib.smart.bzrdir',
592
615
    'SmartServerRequestInitializeBzrDir', info='semi')
593
616
request_handlers.register_lazy(
636
659
request_handlers.register_lazy(
637
660
    'rename', 'bzrlib.smart.vfs', 'RenameRequest', info='semivfs')
638
661
request_handlers.register_lazy(
 
662
    'Repository.all_revision_ids', 'bzrlib.smart.repository',
 
663
    'SmartServerRepositoryAllRevisionIds', info='read')
 
664
request_handlers.register_lazy(
639
665
    'PackRepository.autopack', 'bzrlib.smart.packrepository',
640
666
    'SmartServerPackRepositoryAutopack', info='idem')
641
667
request_handlers.register_lazy(
 
668
    'Repository.break_lock', 'bzrlib.smart.repository',
 
669
    'SmartServerRepositoryBreakLock', info='idem')
 
670
request_handlers.register_lazy(
642
671
    'Repository.gather_stats', 'bzrlib.smart.repository',
643
672
    'SmartServerRepositoryGatherStats', info='read')
644
673
request_handlers.register_lazy(
651
680
    'Repository.has_revision', 'bzrlib.smart.repository',
652
681
    'SmartServerRequestHasRevision', info='read')
653
682
request_handlers.register_lazy(
 
683
    'Repository.has_signature_for_revision_id', 'bzrlib.smart.repository',
 
684
    'SmartServerRequestHasSignatureForRevisionId', info='read')
 
685
request_handlers.register_lazy(
654
686
    'Repository.insert_stream', 'bzrlib.smart.repository',
655
687
    'SmartServerRepositoryInsertStream', info='stream')
656
688
request_handlers.register_lazy(
666
698
    'Repository.lock_write', 'bzrlib.smart.repository',
667
699
    'SmartServerRepositoryLockWrite', info='semi')
668
700
request_handlers.register_lazy(
 
701
    'Repository.make_working_trees', 'bzrlib.smart.repository',
 
702
    'SmartServerRepositoryMakeWorkingTrees', info='read')
 
703
request_handlers.register_lazy(
669
704
    'Repository.set_make_working_trees', 'bzrlib.smart.repository',
670
705
    'SmartServerRepositorySetMakeWorkingTrees', info='idem')
671
706
request_handlers.register_lazy(
672
707
    'Repository.unlock', 'bzrlib.smart.repository',
673
708
    'SmartServerRepositoryUnlock', info='semi')
674
709
request_handlers.register_lazy(
 
710
    'Repository.get_physical_lock_status', 'bzrlib.smart.repository',
 
711
    'SmartServerRepositoryGetPhysicalLockStatus', info='read')
 
712
request_handlers.register_lazy(
675
713
    'Repository.get_rev_id_for_revno', 'bzrlib.smart.repository',
676
714
    'SmartServerRepositoryGetRevIdForRevno', info='read')
677
715
request_handlers.register_lazy(
681
719
    'Repository.get_stream_1.19', 'bzrlib.smart.repository',
682
720
    'SmartServerRepositoryGetStream_1_19', info='read')
683
721
request_handlers.register_lazy(
 
722
    'Repository.start_write_group', 'bzrlib.smart.repository',
 
723
    'SmartServerRepositoryStartWriteGroup', info='semi')
 
724
request_handlers.register_lazy(
 
725
    'Repository.commit_write_group', 'bzrlib.smart.repository',
 
726
    'SmartServerRepositoryCommitWriteGroup', info='semi')
 
727
request_handlers.register_lazy(
 
728
    'Repository.abort_write_group', 'bzrlib.smart.repository',
 
729
    'SmartServerRepositoryAbortWriteGroup')
 
730
request_handlers.register_lazy(
 
731
    'Repository.check_write_group', 'bzrlib.smart.repository',
 
732
    'SmartServerRepositoryCheckWriteGroup', info='read')
 
733
request_handlers.register_lazy(
 
734
    'VersionedFileRepository.get_serializer_format', 'bzrlib.smart.repository',
 
735
    'SmartServerRepositoryGetSerializerFormat', info='read')
 
736
request_handlers.register_lazy(
684
737
    'Repository.tarball', 'bzrlib.smart.repository',
685
738
    'SmartServerRepositoryTarball', info='read')
686
739
request_handlers.register_lazy(
688
741
request_handlers.register_lazy(
689
742
    'stat', 'bzrlib.smart.vfs', 'StatRequest', info='read')
690
743
request_handlers.register_lazy(
691
 
    'Transport.is_readonly', 'bzrlib.smart.request', 'SmartServerIsReadonly',
692
 
    info='read')
 
744
    'Transport.is_readonly', 'bzrlib.smart.request',
 
745
    'SmartServerIsReadonly', info='read')