543
523
# file. If append succeeds, it moves the file pointer.
544
524
request_handlers = registry.Registry()
545
525
request_handlers.register_lazy(
546
b'append', 'breezy.bzr.smart.vfs', 'AppendRequest', info='mutate')
526
'append', 'breezy.smart.vfs', 'AppendRequest', info='mutate')
547
527
request_handlers.register_lazy(
548
b'Branch.break_lock', 'breezy.bzr.smart.branch',
528
'Branch.break_lock', 'breezy.smart.branch',
549
529
'SmartServerBranchBreakLock', info='idem')
550
530
request_handlers.register_lazy(
551
b'Branch.get_config_file', 'breezy.bzr.smart.branch',
531
'Branch.get_config_file', 'breezy.smart.branch',
552
532
'SmartServerBranchGetConfigFile', info='read')
553
533
request_handlers.register_lazy(
554
b'Branch.get_parent', 'breezy.bzr.smart.branch', 'SmartServerBranchGetParent',
534
'Branch.get_parent', 'breezy.smart.branch', 'SmartServerBranchGetParent',
556
536
request_handlers.register_lazy(
557
b'Branch.put_config_file', 'breezy.bzr.smart.branch',
537
'Branch.put_config_file', 'breezy.smart.branch',
558
538
'SmartServerBranchPutConfigFile', info='idem')
559
539
request_handlers.register_lazy(
560
b'Branch.get_tags_bytes', 'breezy.bzr.smart.branch',
540
'Branch.get_tags_bytes', 'breezy.smart.branch',
561
541
'SmartServerBranchGetTagsBytes', info='read')
562
542
request_handlers.register_lazy(
563
b'Branch.set_tags_bytes', 'breezy.bzr.smart.branch',
543
'Branch.set_tags_bytes', 'breezy.smart.branch',
564
544
'SmartServerBranchSetTagsBytes', info='idem')
565
545
request_handlers.register_lazy(
566
b'Branch.heads_to_fetch', 'breezy.bzr.smart.branch',
546
'Branch.heads_to_fetch', 'breezy.smart.branch',
567
547
'SmartServerBranchHeadsToFetch', info='read')
568
548
request_handlers.register_lazy(
569
b'Branch.get_stacked_on_url', 'breezy.bzr.smart.branch',
549
'Branch.get_stacked_on_url', 'breezy.smart.branch',
570
550
'SmartServerBranchRequestGetStackedOnURL', info='read')
571
551
request_handlers.register_lazy(
572
b'Branch.get_physical_lock_status', 'breezy.bzr.smart.branch',
552
'Branch.get_physical_lock_status', 'breezy.smart.branch',
573
553
'SmartServerBranchRequestGetPhysicalLockStatus', info='read')
574
554
request_handlers.register_lazy(
575
b'Branch.last_revision_info', 'breezy.bzr.smart.branch',
555
'Branch.last_revision_info', 'breezy.smart.branch',
576
556
'SmartServerBranchRequestLastRevisionInfo', info='read')
577
557
request_handlers.register_lazy(
578
b'Branch.lock_write', 'breezy.bzr.smart.branch',
558
'Branch.lock_write', 'breezy.smart.branch',
579
559
'SmartServerBranchRequestLockWrite', info='semi')
580
560
request_handlers.register_lazy(
581
b'Branch.revision_history', 'breezy.bzr.smart.branch',
561
'Branch.revision_history', 'breezy.smart.branch',
582
562
'SmartServerRequestRevisionHistory', info='read')
583
563
request_handlers.register_lazy(
584
b'Branch.set_config_option', 'breezy.bzr.smart.branch',
564
'Branch.set_config_option', 'breezy.smart.branch',
585
565
'SmartServerBranchRequestSetConfigOption', info='idem')
586
566
request_handlers.register_lazy(
587
b'Branch.set_config_option_dict', 'breezy.bzr.smart.branch',
567
'Branch.set_config_option_dict', 'breezy.smart.branch',
588
568
'SmartServerBranchRequestSetConfigOptionDict', info='idem')
589
569
request_handlers.register_lazy(
590
b'Branch.set_last_revision', 'breezy.bzr.smart.branch',
570
'Branch.set_last_revision', 'breezy.smart.branch',
591
571
'SmartServerBranchRequestSetLastRevision', info='idem')
592
572
request_handlers.register_lazy(
593
b'Branch.set_last_revision_info', 'breezy.bzr.smart.branch',
573
'Branch.set_last_revision_info', 'breezy.smart.branch',
594
574
'SmartServerBranchRequestSetLastRevisionInfo', info='idem')
595
575
request_handlers.register_lazy(
596
b'Branch.set_last_revision_ex', 'breezy.bzr.smart.branch',
576
'Branch.set_last_revision_ex', 'breezy.smart.branch',
597
577
'SmartServerBranchRequestSetLastRevisionEx', info='idem')
598
578
request_handlers.register_lazy(
599
b'Branch.set_parent_location', 'breezy.bzr.smart.branch',
579
'Branch.set_parent_location', 'breezy.smart.branch',
600
580
'SmartServerBranchRequestSetParentLocation', info='idem')
601
581
request_handlers.register_lazy(
602
b'Branch.unlock', 'breezy.bzr.smart.branch',
582
'Branch.unlock', 'breezy.smart.branch',
603
583
'SmartServerBranchRequestUnlock', info='semi')
604
584
request_handlers.register_lazy(
605
b'Branch.revision_id_to_revno', 'breezy.bzr.smart.branch',
585
'Branch.revision_id_to_revno', 'breezy.smart.branch',
606
586
'SmartServerBranchRequestRevisionIdToRevno', info='read')
607
587
request_handlers.register_lazy(
608
b'Branch.get_all_reference_info', 'breezy.bzr.smart.branch',
609
'SmartServerBranchRequestGetAllReferenceInfo', info='read')
610
request_handlers.register_lazy(
611
b'BzrDir.checkout_metadir', 'breezy.bzr.smart.bzrdir',
588
'BzrDir.checkout_metadir', 'breezy.smart.bzrdir',
612
589
'SmartServerBzrDirRequestCheckoutMetaDir', info='read')
613
590
request_handlers.register_lazy(
614
b'BzrDir.cloning_metadir', 'breezy.bzr.smart.bzrdir',
591
'BzrDir.cloning_metadir', 'breezy.smart.bzrdir',
615
592
'SmartServerBzrDirRequestCloningMetaDir', info='read')
616
593
request_handlers.register_lazy(
617
b'BzrDir.create_branch', 'breezy.bzr.smart.bzrdir',
594
'BzrDir.create_branch', 'breezy.smart.bzrdir',
618
595
'SmartServerRequestCreateBranch', info='semi')
619
596
request_handlers.register_lazy(
620
b'BzrDir.create_repository', 'breezy.bzr.smart.bzrdir',
597
'BzrDir.create_repository', 'breezy.smart.bzrdir',
621
598
'SmartServerRequestCreateRepository', info='semi')
622
599
request_handlers.register_lazy(
623
b'BzrDir.find_repository', 'breezy.bzr.smart.bzrdir',
600
'BzrDir.find_repository', 'breezy.smart.bzrdir',
624
601
'SmartServerRequestFindRepositoryV1', info='read')
625
602
request_handlers.register_lazy(
626
b'BzrDir.find_repositoryV2', 'breezy.bzr.smart.bzrdir',
603
'BzrDir.find_repositoryV2', 'breezy.smart.bzrdir',
627
604
'SmartServerRequestFindRepositoryV2', info='read')
628
605
request_handlers.register_lazy(
629
b'BzrDir.find_repositoryV3', 'breezy.bzr.smart.bzrdir',
606
'BzrDir.find_repositoryV3', 'breezy.smart.bzrdir',
630
607
'SmartServerRequestFindRepositoryV3', info='read')
631
608
request_handlers.register_lazy(
632
b'BzrDir.get_branches', 'breezy.bzr.smart.bzrdir',
609
'BzrDir.get_branches', 'breezy.smart.bzrdir',
633
610
'SmartServerBzrDirRequestGetBranches', info='read')
634
611
request_handlers.register_lazy(
635
b'BzrDir.get_config_file', 'breezy.bzr.smart.bzrdir',
612
'BzrDir.get_config_file', 'breezy.smart.bzrdir',
636
613
'SmartServerBzrDirRequestConfigFile', info='read')
637
614
request_handlers.register_lazy(
638
b'BzrDir.destroy_branch', 'breezy.bzr.smart.bzrdir',
615
'BzrDir.destroy_branch', 'breezy.smart.bzrdir',
639
616
'SmartServerBzrDirRequestDestroyBranch', info='semi')
640
617
request_handlers.register_lazy(
641
b'BzrDir.destroy_repository', 'breezy.bzr.smart.bzrdir',
618
'BzrDir.destroy_repository', 'breezy.smart.bzrdir',
642
619
'SmartServerBzrDirRequestDestroyRepository', info='semi')
643
620
request_handlers.register_lazy(
644
b'BzrDir.has_workingtree', 'breezy.bzr.smart.bzrdir',
621
'BzrDir.has_workingtree', 'breezy.smart.bzrdir',
645
622
'SmartServerBzrDirRequestHasWorkingTree', info='read')
646
623
request_handlers.register_lazy(
647
b'BzrDirFormat.initialize', 'breezy.bzr.smart.bzrdir',
624
'BzrDirFormat.initialize', 'breezy.smart.bzrdir',
648
625
'SmartServerRequestInitializeBzrDir', info='semi')
649
626
request_handlers.register_lazy(
650
b'BzrDirFormat.initialize_ex_1.16', 'breezy.bzr.smart.bzrdir',
627
'BzrDirFormat.initialize_ex_1.16', 'breezy.smart.bzrdir',
651
628
'SmartServerRequestBzrDirInitializeEx', info='semi')
652
629
request_handlers.register_lazy(
653
b'BzrDir.open', 'breezy.bzr.smart.bzrdir', 'SmartServerRequestOpenBzrDir',
630
'BzrDir.open', 'breezy.smart.bzrdir', 'SmartServerRequestOpenBzrDir',
655
632
request_handlers.register_lazy(
656
b'BzrDir.open_2.1', 'breezy.bzr.smart.bzrdir',
633
'BzrDir.open_2.1', 'breezy.smart.bzrdir',
657
634
'SmartServerRequestOpenBzrDir_2_1', info='read')
658
635
request_handlers.register_lazy(
659
b'BzrDir.open_branch', 'breezy.bzr.smart.bzrdir',
636
'BzrDir.open_branch', 'breezy.smart.bzrdir',
660
637
'SmartServerRequestOpenBranch', info='read')
661
638
request_handlers.register_lazy(
662
b'BzrDir.open_branchV2', 'breezy.bzr.smart.bzrdir',
639
'BzrDir.open_branchV2', 'breezy.smart.bzrdir',
663
640
'SmartServerRequestOpenBranchV2', info='read')
664
641
request_handlers.register_lazy(
665
b'BzrDir.open_branchV3', 'breezy.bzr.smart.bzrdir',
642
'BzrDir.open_branchV3', 'breezy.smart.bzrdir',
666
643
'SmartServerRequestOpenBranchV3', info='read')
667
644
request_handlers.register_lazy(
668
b'delete', 'breezy.bzr.smart.vfs', 'DeleteRequest', info='semivfs')
669
request_handlers.register_lazy(
670
b'get', 'breezy.bzr.smart.vfs', 'GetRequest', info='read')
671
request_handlers.register_lazy(
672
b'get_bundle', 'breezy.bzr.smart.request', 'GetBundleRequest', info='read')
673
request_handlers.register_lazy(
674
b'has', 'breezy.bzr.smart.vfs', 'HasRequest', info='read')
675
request_handlers.register_lazy(
676
b'hello', 'breezy.bzr.smart.request', 'HelloRequest', info='read')
677
request_handlers.register_lazy(
678
b'iter_files_recursive', 'breezy.bzr.smart.vfs', 'IterFilesRecursiveRequest',
645
'delete', 'breezy.smart.vfs', 'DeleteRequest', info='semivfs')
646
request_handlers.register_lazy(
647
'get', 'breezy.smart.vfs', 'GetRequest', info='read')
648
request_handlers.register_lazy(
649
'get_bundle', 'breezy.smart.request', 'GetBundleRequest', info='read')
650
request_handlers.register_lazy(
651
'has', 'breezy.smart.vfs', 'HasRequest', info='read')
652
request_handlers.register_lazy(
653
'hello', 'breezy.smart.request', 'HelloRequest', info='read')
654
request_handlers.register_lazy(
655
'iter_files_recursive', 'breezy.smart.vfs', 'IterFilesRecursiveRequest',
680
657
request_handlers.register_lazy(
681
b'list_dir', 'breezy.bzr.smart.vfs', 'ListDirRequest', info='read')
682
request_handlers.register_lazy(
683
b'mkdir', 'breezy.bzr.smart.vfs', 'MkdirRequest', info='semivfs')
684
request_handlers.register_lazy(
685
b'move', 'breezy.bzr.smart.vfs', 'MoveRequest', info='semivfs')
686
request_handlers.register_lazy(
687
b'put', 'breezy.bzr.smart.vfs', 'PutRequest', info='idem')
688
request_handlers.register_lazy(
689
b'put_non_atomic', 'breezy.bzr.smart.vfs', 'PutNonAtomicRequest', info='idem')
690
request_handlers.register_lazy(
691
b'readv', 'breezy.bzr.smart.vfs', 'ReadvRequest', info='read')
692
request_handlers.register_lazy(
693
b'rename', 'breezy.bzr.smart.vfs', 'RenameRequest', info='semivfs')
694
request_handlers.register_lazy(
695
b'Repository.add_signature_text', 'breezy.bzr.smart.repository',
658
'list_dir', 'breezy.smart.vfs', 'ListDirRequest', info='read')
659
request_handlers.register_lazy(
660
'mkdir', 'breezy.smart.vfs', 'MkdirRequest', info='semivfs')
661
request_handlers.register_lazy(
662
'move', 'breezy.smart.vfs', 'MoveRequest', info='semivfs')
663
request_handlers.register_lazy(
664
'put', 'breezy.smart.vfs', 'PutRequest', info='idem')
665
request_handlers.register_lazy(
666
'put_non_atomic', 'breezy.smart.vfs', 'PutNonAtomicRequest', info='idem')
667
request_handlers.register_lazy(
668
'readv', 'breezy.smart.vfs', 'ReadvRequest', info='read')
669
request_handlers.register_lazy(
670
'rename', 'breezy.smart.vfs', 'RenameRequest', info='semivfs')
671
request_handlers.register_lazy(
672
'Repository.add_signature_text', 'breezy.smart.repository',
696
673
'SmartServerRepositoryAddSignatureText', info='idem')
697
674
request_handlers.register_lazy(
698
b'Repository.annotate_file_revision', 'breezy.bzr.smart.repository',
699
'SmartServerRepositoryAnnotateFileRevision', info='read')
700
request_handlers.register_lazy(
701
b'Repository.all_revision_ids', 'breezy.bzr.smart.repository',
675
'Repository.all_revision_ids', 'breezy.smart.repository',
702
676
'SmartServerRepositoryAllRevisionIds', info='read')
703
677
request_handlers.register_lazy(
704
b'PackRepository.autopack', 'breezy.bzr.smart.packrepository',
678
'PackRepository.autopack', 'breezy.smart.packrepository',
705
679
'SmartServerPackRepositoryAutopack', info='idem')
706
680
request_handlers.register_lazy(
707
b'Repository.break_lock', 'breezy.bzr.smart.repository',
681
'Repository.break_lock', 'breezy.smart.repository',
708
682
'SmartServerRepositoryBreakLock', info='idem')
709
683
request_handlers.register_lazy(
710
b'Repository.gather_stats', 'breezy.bzr.smart.repository',
684
'Repository.gather_stats', 'breezy.smart.repository',
711
685
'SmartServerRepositoryGatherStats', info='read')
712
686
request_handlers.register_lazy(
713
b'Repository.get_parent_map', 'breezy.bzr.smart.repository',
687
'Repository.get_parent_map', 'breezy.smart.repository',
714
688
'SmartServerRepositoryGetParentMap', info='read')
715
689
request_handlers.register_lazy(
716
b'Repository.get_revision_graph', 'breezy.bzr.smart.repository',
690
'Repository.get_revision_graph', 'breezy.smart.repository',
717
691
'SmartServerRepositoryGetRevisionGraph', info='read')
718
692
request_handlers.register_lazy(
719
b'Repository.get_revision_signature_text', 'breezy.bzr.smart.repository',
693
'Repository.get_revision_signature_text', 'breezy.smart.repository',
720
694
'SmartServerRepositoryGetRevisionSignatureText', info='read')
721
695
request_handlers.register_lazy(
722
b'Repository.has_revision', 'breezy.bzr.smart.repository',
696
'Repository.has_revision', 'breezy.smart.repository',
723
697
'SmartServerRequestHasRevision', info='read')
724
698
request_handlers.register_lazy(
725
b'Repository.has_signature_for_revision_id', 'breezy.bzr.smart.repository',
699
'Repository.has_signature_for_revision_id', 'breezy.smart.repository',
726
700
'SmartServerRequestHasSignatureForRevisionId', info='read')
727
701
request_handlers.register_lazy(
728
b'Repository.insert_stream', 'breezy.bzr.smart.repository',
702
'Repository.insert_stream', 'breezy.smart.repository',
729
703
'SmartServerRepositoryInsertStream', info='stream')
730
704
request_handlers.register_lazy(
731
b'Repository.insert_stream_1.19', 'breezy.bzr.smart.repository',
705
'Repository.insert_stream_1.19', 'breezy.smart.repository',
732
706
'SmartServerRepositoryInsertStream_1_19', info='stream')
733
707
request_handlers.register_lazy(
734
b'Repository.insert_stream_locked', 'breezy.bzr.smart.repository',
708
'Repository.insert_stream_locked', 'breezy.smart.repository',
735
709
'SmartServerRepositoryInsertStreamLocked', info='stream')
736
710
request_handlers.register_lazy(
737
b'Repository.is_shared', 'breezy.bzr.smart.repository',
711
'Repository.is_shared', 'breezy.smart.repository',
738
712
'SmartServerRepositoryIsShared', info='read')
739
713
request_handlers.register_lazy(
740
b'Repository.iter_files_bytes', 'breezy.bzr.smart.repository',
714
'Repository.iter_files_bytes', 'breezy.smart.repository',
741
715
'SmartServerRepositoryIterFilesBytes', info='read')
742
716
request_handlers.register_lazy(
743
b'Repository.lock_write', 'breezy.bzr.smart.repository',
717
'Repository.lock_write', 'breezy.smart.repository',
744
718
'SmartServerRepositoryLockWrite', info='semi')
745
719
request_handlers.register_lazy(
746
b'Repository.make_working_trees', 'breezy.bzr.smart.repository',
720
'Repository.make_working_trees', 'breezy.smart.repository',
747
721
'SmartServerRepositoryMakeWorkingTrees', info='read')
748
722
request_handlers.register_lazy(
749
b'Repository.set_make_working_trees', 'breezy.bzr.smart.repository',
723
'Repository.set_make_working_trees', 'breezy.smart.repository',
750
724
'SmartServerRepositorySetMakeWorkingTrees', info='idem')
751
725
request_handlers.register_lazy(
752
b'Repository.unlock', 'breezy.bzr.smart.repository',
726
'Repository.unlock', 'breezy.smart.repository',
753
727
'SmartServerRepositoryUnlock', info='semi')
754
728
request_handlers.register_lazy(
755
b'Repository.get_physical_lock_status', 'breezy.bzr.smart.repository',
729
'Repository.get_physical_lock_status', 'breezy.smart.repository',
756
730
'SmartServerRepositoryGetPhysicalLockStatus', info='read')
757
731
request_handlers.register_lazy(
758
b'Repository.get_rev_id_for_revno', 'breezy.bzr.smart.repository',
732
'Repository.get_rev_id_for_revno', 'breezy.smart.repository',
759
733
'SmartServerRepositoryGetRevIdForRevno', info='read')
760
734
request_handlers.register_lazy(
761
b'Repository.get_stream', 'breezy.bzr.smart.repository',
735
'Repository.get_stream', 'breezy.smart.repository',
762
736
'SmartServerRepositoryGetStream', info='read')
763
737
request_handlers.register_lazy(
764
b'Repository.get_stream_1.19', 'breezy.bzr.smart.repository',
738
'Repository.get_stream_1.19', 'breezy.smart.repository',
765
739
'SmartServerRepositoryGetStream_1_19', info='read')
766
740
request_handlers.register_lazy(
767
b'Repository.get_stream_for_missing_keys', 'breezy.bzr.smart.repository',
768
'SmartServerRepositoryGetStreamForMissingKeys', info='read')
769
request_handlers.register_lazy(
770
b'Repository.iter_revisions', 'breezy.bzr.smart.repository',
741
'Repository.iter_revisions', 'breezy.smart.repository',
771
742
'SmartServerRepositoryIterRevisions', info='read')
772
743
request_handlers.register_lazy(
773
b'Repository.pack', 'breezy.bzr.smart.repository',
744
'Repository.pack', 'breezy.smart.repository',
774
745
'SmartServerRepositoryPack', info='idem')
775
746
request_handlers.register_lazy(
776
b'Repository.start_write_group', 'breezy.bzr.smart.repository',
747
'Repository.start_write_group', 'breezy.smart.repository',
777
748
'SmartServerRepositoryStartWriteGroup', info='semi')
778
749
request_handlers.register_lazy(
779
b'Repository.commit_write_group', 'breezy.bzr.smart.repository',
750
'Repository.commit_write_group', 'breezy.smart.repository',
780
751
'SmartServerRepositoryCommitWriteGroup', info='semi')
781
752
request_handlers.register_lazy(
782
b'Repository.abort_write_group', 'breezy.bzr.smart.repository',
753
'Repository.abort_write_group', 'breezy.smart.repository',
783
754
'SmartServerRepositoryAbortWriteGroup', info='semi')
784
755
request_handlers.register_lazy(
785
b'Repository.check_write_group', 'breezy.bzr.smart.repository',
756
'Repository.check_write_group', 'breezy.smart.repository',
786
757
'SmartServerRepositoryCheckWriteGroup', info='read')
787
758
request_handlers.register_lazy(
788
b'Repository.reconcile', 'breezy.bzr.smart.repository',
759
'Repository.reconcile', 'breezy.smart.repository',
789
760
'SmartServerRepositoryReconcile', info='idem')
790
761
request_handlers.register_lazy(
791
b'Repository.revision_archive', 'breezy.bzr.smart.repository',
792
'SmartServerRepositoryRevisionArchive', info='read')
793
request_handlers.register_lazy(
794
b'Repository.tarball', 'breezy.bzr.smart.repository',
762
'Repository.tarball', 'breezy.smart.repository',
795
763
'SmartServerRepositoryTarball', info='read')
796
764
request_handlers.register_lazy(
797
b'VersionedFileRepository.get_serializer_format', 'breezy.bzr.smart.repository',
765
'VersionedFileRepository.get_serializer_format', 'breezy.smart.repository',
798
766
'SmartServerRepositoryGetSerializerFormat', info='read')
799
767
request_handlers.register_lazy(
800
b'VersionedFileRepository.get_inventories', 'breezy.bzr.smart.repository',
768
'VersionedFileRepository.get_inventories', 'breezy.smart.repository',
801
769
'SmartServerRepositoryGetInventories', info='read')
802
770
request_handlers.register_lazy(
803
b'rmdir', 'breezy.bzr.smart.vfs', 'RmdirRequest', info='semivfs')
804
request_handlers.register_lazy(
805
b'stat', 'breezy.bzr.smart.vfs', 'StatRequest', info='read')
806
request_handlers.register_lazy(
807
b'Transport.is_readonly', 'breezy.bzr.smart.request',
771
'rmdir', 'breezy.smart.vfs', 'RmdirRequest', info='semivfs')
772
request_handlers.register_lazy(
773
'stat', 'breezy.smart.vfs', 'StatRequest', info='read')
774
request_handlers.register_lazy(
775
'Transport.is_readonly', 'breezy.smart.request',
808
776
'SmartServerIsReadonly', info='read')