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