/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: Robert Collins
  • Date: 2010-05-06 11:08:10 UTC
  • mto: This revision was merged to the branch mainline in revision 5223.
  • Revision ID: robertc@robertcollins.net-20100506110810-h3j07fh5gmw54s25
Cleaner matcher matching revised unlocking protocol.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2006-2011 Canonical Ltd
 
1
# Copyright (C) 2006-2010 Canonical Ltd
2
2
#
3
3
# This program is free software; you can redistribute it and/or modify
4
4
# it under the terms of the GNU General Public License as published by
31
31
# of a SmartServerRequest subclass.
32
32
 
33
33
 
 
34
import tempfile
 
35
import thread
34
36
import threading
35
37
 
36
38
from bzrlib import (
46
48
from bzrlib.lazy_import import lazy_import
47
49
lazy_import(globals(), """
48
50
from bzrlib.bundle import serializer
49
 
 
50
 
import tempfile
51
 
import thread
52
51
""")
53
52
 
54
53
 
135
134
        It will return a SmartServerResponse if the command does not expect a
136
135
        body.
137
136
 
138
 
        :param args: the arguments of the request.
 
137
        :param *args: the arguments of the request.
139
138
        """
140
139
        self._check_enabled()
141
140
        return self.do(*args)
415
414
    elif isinstance(err, errors.ShortReadvError):
416
415
        return ('ShortReadvError', err.path, str(err.offset), str(err.length),
417
416
                str(err.actual))
418
 
    elif isinstance(err, errors.RevisionNotPresent):
419
 
        return ('RevisionNotPresent', err.revision_id, err.file_id)
420
417
    elif isinstance(err, errors.UnstackableRepositoryFormat):
421
418
        return (('UnstackableRepositoryFormat', str(err.format), err.url))
422
419
    elif isinstance(err, errors.UnstackableBranchFormat):
423
420
        return ('UnstackableBranchFormat', str(err.format), err.url)
424
421
    elif isinstance(err, errors.NotStacked):
425
422
        return ('NotStacked',)
426
 
    elif isinstance(err, errors.BzrCheckError):
427
 
        return ('BzrCheckError', err.msg)
428
423
    elif isinstance(err, UnicodeError):
429
424
        # If it is a DecodeError, than most likely we are starting
430
425
        # with a plain string
451
446
        return ('TokenMismatch', err.given_token, err.lock_token)
452
447
    elif isinstance(err, errors.LockContention):
453
448
        return ('LockContention',)
454
 
    elif isinstance(err, MemoryError):
455
 
        # GZ 2011-02-24: Copy bzrlib.trace -Dmem_dump functionality here?
456
 
        return ('MemoryError',)
457
449
    # Unserialisable error.  Log it, and return a generic error
458
450
    trace.log_exception_quietly()
459
 
    return ('error', trace._qualified_exception_name(err.__class__, True),
460
 
        str(err))
 
451
    return ('error', str(err))
461
452
 
462
453
 
463
454
class HelloRequest(SmartServerRequest):
495
486
        return SuccessfulSmartServerResponse((answer,))
496
487
 
497
488
 
498
 
# In the 'info' attribute, we store whether this request is 'safe' to retry if
499
 
# we get a disconnect while reading the response. It can have the values:
500
 
#   read    This is purely a read request, so retrying it is perfectly ok.
501
 
#   idem    An idempotent write request. Something like 'put' where if you put
502
 
#           the same bytes twice you end up with the same final bytes.
503
 
#   semi    This is a request that isn't strictly idempotent, but doesn't
504
 
#           result in corruption if it is retried. This is for things like
505
 
#           'lock' and 'unlock'. If you call lock, it updates the disk
506
 
#           structure. If you fail to read the response, you won't be able to
507
 
#           use the lock, because you don't have the lock token. Calling lock
508
 
#           again will fail, because the lock is already taken. However, we
509
 
#           can't tell if the server received our request or not. If it didn't,
510
 
#           then retrying the request is fine, as it will actually do what we
511
 
#           want. If it did, we will interrupt the current operation, but we
512
 
#           are no worse off than interrupting the current operation because of
513
 
#           a ConnectionReset.
514
 
#   semivfs Similar to semi, but specific to a Virtual FileSystem request.
515
 
#   stream  This is a request that takes a stream that cannot be restarted if
516
 
#           consumed. This request is 'safe' in that if we determine the
517
 
#           connection is closed before we consume the stream, we can try
518
 
#           again.
519
 
#   mutate  State is updated in a way that replaying that request results in a
520
 
#           different state. For example 'append' writes more bytes to a given
521
 
#           file. If append succeeds, it moves the file pointer.
522
489
request_handlers = registry.Registry()
523
490
request_handlers.register_lazy(
524
 
    'append', 'bzrlib.smart.vfs', 'AppendRequest', info='mutate')
525
 
request_handlers.register_lazy(
526
 
    'Branch.break_lock', 'bzrlib.smart.branch',
527
 
    'SmartServerBranchBreakLock', info='idem')
 
491
    'append', 'bzrlib.smart.vfs', 'AppendRequest')
528
492
request_handlers.register_lazy(
529
493
    'Branch.get_config_file', 'bzrlib.smart.branch',
530
 
    'SmartServerBranchGetConfigFile', info='read')
531
 
request_handlers.register_lazy(
532
 
    'Branch.get_parent', 'bzrlib.smart.branch', 'SmartServerBranchGetParent',
533
 
    info='read')
534
 
request_handlers.register_lazy(
535
 
    'Branch.put_config_file', 'bzrlib.smart.branch',
536
 
    'SmartServerBranchPutConfigFile', info='idem')
 
494
    'SmartServerBranchGetConfigFile')
 
495
request_handlers.register_lazy(
 
496
    'Branch.get_parent', 'bzrlib.smart.branch', 'SmartServerBranchGetParent')
537
497
request_handlers.register_lazy(
538
498
    'Branch.get_tags_bytes', 'bzrlib.smart.branch',
539
 
    'SmartServerBranchGetTagsBytes', info='read')
 
499
    'SmartServerBranchGetTagsBytes')
540
500
request_handlers.register_lazy(
541
501
    'Branch.set_tags_bytes', 'bzrlib.smart.branch',
542
 
    'SmartServerBranchSetTagsBytes', info='idem')
543
 
request_handlers.register_lazy(
544
 
    'Branch.heads_to_fetch', 'bzrlib.smart.branch',
545
 
    'SmartServerBranchHeadsToFetch', info='read')
546
 
request_handlers.register_lazy(
547
 
    'Branch.get_stacked_on_url', 'bzrlib.smart.branch',
548
 
    'SmartServerBranchRequestGetStackedOnURL', info='read')
549
 
request_handlers.register_lazy(
550
 
    'Branch.get_physical_lock_status', 'bzrlib.smart.branch',
551
 
    'SmartServerBranchRequestGetPhysicalLockStatus', info='read')
552
 
request_handlers.register_lazy(
553
 
    'Branch.last_revision_info', 'bzrlib.smart.branch',
554
 
    'SmartServerBranchRequestLastRevisionInfo', info='read')
555
 
request_handlers.register_lazy(
556
 
    'Branch.lock_write', 'bzrlib.smart.branch',
557
 
    'SmartServerBranchRequestLockWrite', info='semi')
558
 
request_handlers.register_lazy(
559
 
    'Branch.revision_history', 'bzrlib.smart.branch',
560
 
    'SmartServerRequestRevisionHistory', info='read')
561
 
request_handlers.register_lazy(
562
 
    'Branch.set_config_option', 'bzrlib.smart.branch',
563
 
    'SmartServerBranchRequestSetConfigOption', info='idem')
564
 
request_handlers.register_lazy(
565
 
    'Branch.set_config_option_dict', 'bzrlib.smart.branch',
566
 
    'SmartServerBranchRequestSetConfigOptionDict', info='idem')
567
 
request_handlers.register_lazy(
568
 
    'Branch.set_last_revision', 'bzrlib.smart.branch',
569
 
    'SmartServerBranchRequestSetLastRevision', info='idem')
 
502
    'SmartServerBranchSetTagsBytes')
 
503
request_handlers.register_lazy(
 
504
    'Branch.get_stacked_on_url', 'bzrlib.smart.branch', 'SmartServerBranchRequestGetStackedOnURL')
 
505
request_handlers.register_lazy(
 
506
    'Branch.last_revision_info', 'bzrlib.smart.branch', 'SmartServerBranchRequestLastRevisionInfo')
 
507
request_handlers.register_lazy(
 
508
    'Branch.lock_write', 'bzrlib.smart.branch', 'SmartServerBranchRequestLockWrite')
 
509
request_handlers.register_lazy( 'Branch.revision_history',
 
510
    'bzrlib.smart.branch', 'SmartServerRequestRevisionHistory')
 
511
request_handlers.register_lazy( 'Branch.set_config_option',
 
512
    'bzrlib.smart.branch', 'SmartServerBranchRequestSetConfigOption')
 
513
request_handlers.register_lazy( 'Branch.set_last_revision',
 
514
    'bzrlib.smart.branch', 'SmartServerBranchRequestSetLastRevision')
570
515
request_handlers.register_lazy(
571
516
    'Branch.set_last_revision_info', 'bzrlib.smart.branch',
572
 
    'SmartServerBranchRequestSetLastRevisionInfo', info='idem')
 
517
    'SmartServerBranchRequestSetLastRevisionInfo')
573
518
request_handlers.register_lazy(
574
519
    'Branch.set_last_revision_ex', 'bzrlib.smart.branch',
575
 
    'SmartServerBranchRequestSetLastRevisionEx', info='idem')
 
520
    'SmartServerBranchRequestSetLastRevisionEx')
576
521
request_handlers.register_lazy(
577
522
    'Branch.set_parent_location', 'bzrlib.smart.branch',
578
 
    'SmartServerBranchRequestSetParentLocation', info='idem')
579
 
request_handlers.register_lazy(
580
 
    'Branch.unlock', 'bzrlib.smart.branch',
581
 
    'SmartServerBranchRequestUnlock', info='semi')
582
 
request_handlers.register_lazy(
583
 
    'Branch.revision_id_to_revno', 'bzrlib.smart.branch',
584
 
    'SmartServerBranchRequestRevisionIdToRevno', info='read')
585
 
request_handlers.register_lazy(
586
 
    'BzrDir.checkout_metadir', 'bzrlib.smart.bzrdir',
587
 
    'SmartServerBzrDirRequestCheckoutMetaDir', info='read')
 
523
    'SmartServerBranchRequestSetParentLocation')
 
524
request_handlers.register_lazy(
 
525
    'Branch.unlock', 'bzrlib.smart.branch', 'SmartServerBranchRequestUnlock')
588
526
request_handlers.register_lazy(
589
527
    'BzrDir.cloning_metadir', 'bzrlib.smart.bzrdir',
590
 
    'SmartServerBzrDirRequestCloningMetaDir', info='read')
 
528
    'SmartServerBzrDirRequestCloningMetaDir')
591
529
request_handlers.register_lazy(
592
530
    'BzrDir.create_branch', 'bzrlib.smart.bzrdir',
593
 
    'SmartServerRequestCreateBranch', info='semi')
 
531
    'SmartServerRequestCreateBranch')
594
532
request_handlers.register_lazy(
595
533
    'BzrDir.create_repository', 'bzrlib.smart.bzrdir',
596
 
    'SmartServerRequestCreateRepository', info='semi')
 
534
    'SmartServerRequestCreateRepository')
597
535
request_handlers.register_lazy(
598
536
    'BzrDir.find_repository', 'bzrlib.smart.bzrdir',
599
 
    'SmartServerRequestFindRepositoryV1', info='read')
 
537
    'SmartServerRequestFindRepositoryV1')
600
538
request_handlers.register_lazy(
601
539
    'BzrDir.find_repositoryV2', 'bzrlib.smart.bzrdir',
602
 
    'SmartServerRequestFindRepositoryV2', info='read')
 
540
    'SmartServerRequestFindRepositoryV2')
603
541
request_handlers.register_lazy(
604
542
    'BzrDir.find_repositoryV3', 'bzrlib.smart.bzrdir',
605
 
    'SmartServerRequestFindRepositoryV3', info='read')
 
543
    'SmartServerRequestFindRepositoryV3')
606
544
request_handlers.register_lazy(
607
545
    'BzrDir.get_config_file', 'bzrlib.smart.bzrdir',
608
 
    'SmartServerBzrDirRequestConfigFile', info='read')
609
 
request_handlers.register_lazy(
610
 
    'BzrDir.destroy_branch', 'bzrlib.smart.bzrdir',
611
 
    'SmartServerBzrDirRequestDestroyBranch', info='semi')
612
 
request_handlers.register_lazy(
613
 
    'BzrDir.destroy_repository', 'bzrlib.smart.bzrdir',
614
 
    'SmartServerBzrDirRequestDestroyRepository', info='semi')
615
 
request_handlers.register_lazy(
616
 
    'BzrDir.has_workingtree', 'bzrlib.smart.bzrdir',
617
 
    'SmartServerBzrDirRequestHasWorkingTree', info='read')
 
546
    'SmartServerBzrDirRequestConfigFile')
618
547
request_handlers.register_lazy(
619
548
    'BzrDirFormat.initialize', 'bzrlib.smart.bzrdir',
620
 
    'SmartServerRequestInitializeBzrDir', info='semi')
 
549
    'SmartServerRequestInitializeBzrDir')
621
550
request_handlers.register_lazy(
622
551
    'BzrDirFormat.initialize_ex_1.16', 'bzrlib.smart.bzrdir',
623
 
    'SmartServerRequestBzrDirInitializeEx', info='semi')
624
 
request_handlers.register_lazy(
625
 
    'BzrDir.open', 'bzrlib.smart.bzrdir', 'SmartServerRequestOpenBzrDir',
626
 
    info='read')
627
 
request_handlers.register_lazy(
628
 
    'BzrDir.open_2.1', 'bzrlib.smart.bzrdir',
629
 
    'SmartServerRequestOpenBzrDir_2_1', info='read')
 
552
    'SmartServerRequestBzrDirInitializeEx')
 
553
request_handlers.register_lazy(
 
554
    'BzrDir.open', 'bzrlib.smart.bzrdir', 'SmartServerRequestOpenBzrDir')
 
555
request_handlers.register_lazy(
 
556
    'BzrDir.open_2.1', 'bzrlib.smart.bzrdir', 'SmartServerRequestOpenBzrDir_2_1')
630
557
request_handlers.register_lazy(
631
558
    'BzrDir.open_branch', 'bzrlib.smart.bzrdir',
632
 
    'SmartServerRequestOpenBranch', info='read')
 
559
    'SmartServerRequestOpenBranch')
633
560
request_handlers.register_lazy(
634
561
    'BzrDir.open_branchV2', 'bzrlib.smart.bzrdir',
635
 
    'SmartServerRequestOpenBranchV2', info='read')
 
562
    'SmartServerRequestOpenBranchV2')
636
563
request_handlers.register_lazy(
637
564
    'BzrDir.open_branchV3', 'bzrlib.smart.bzrdir',
638
 
    'SmartServerRequestOpenBranchV3', info='read')
639
 
request_handlers.register_lazy(
640
 
    'delete', 'bzrlib.smart.vfs', 'DeleteRequest', info='semivfs')
641
 
request_handlers.register_lazy(
642
 
    'get', 'bzrlib.smart.vfs', 'GetRequest', info='read')
643
 
request_handlers.register_lazy(
644
 
    'get_bundle', 'bzrlib.smart.request', 'GetBundleRequest', info='read')
645
 
request_handlers.register_lazy(
646
 
    'has', 'bzrlib.smart.vfs', 'HasRequest', info='read')
647
 
request_handlers.register_lazy(
648
 
    'hello', 'bzrlib.smart.request', 'HelloRequest', info='read')
649
 
request_handlers.register_lazy(
650
 
    'iter_files_recursive', 'bzrlib.smart.vfs', 'IterFilesRecursiveRequest',
651
 
    info='read')
652
 
request_handlers.register_lazy(
653
 
    'list_dir', 'bzrlib.smart.vfs', 'ListDirRequest', info='read')
654
 
request_handlers.register_lazy(
655
 
    'mkdir', 'bzrlib.smart.vfs', 'MkdirRequest', info='semivfs')
656
 
request_handlers.register_lazy(
657
 
    'move', 'bzrlib.smart.vfs', 'MoveRequest', info='semivfs')
658
 
request_handlers.register_lazy(
659
 
    'put', 'bzrlib.smart.vfs', 'PutRequest', info='idem')
660
 
request_handlers.register_lazy(
661
 
    'put_non_atomic', 'bzrlib.smart.vfs', 'PutNonAtomicRequest', info='idem')
662
 
request_handlers.register_lazy(
663
 
    'readv', 'bzrlib.smart.vfs', 'ReadvRequest', info='read')
664
 
request_handlers.register_lazy(
665
 
    'rename', 'bzrlib.smart.vfs', 'RenameRequest', info='semivfs')
666
 
request_handlers.register_lazy(
667
 
    'Repository.add_signature_text', 'bzrlib.smart.repository',
668
 
    'SmartServerRepositoryAddSignatureText', info='idem')
669
 
request_handlers.register_lazy(
670
 
    'Repository.all_revision_ids', 'bzrlib.smart.repository',
671
 
    'SmartServerRepositoryAllRevisionIds', info='read')
 
565
    'SmartServerRequestOpenBranchV3')
 
566
request_handlers.register_lazy(
 
567
    'delete', 'bzrlib.smart.vfs', 'DeleteRequest')
 
568
request_handlers.register_lazy(
 
569
    'get', 'bzrlib.smart.vfs', 'GetRequest')
 
570
request_handlers.register_lazy(
 
571
    'get_bundle', 'bzrlib.smart.request', 'GetBundleRequest')
 
572
request_handlers.register_lazy(
 
573
    'has', 'bzrlib.smart.vfs', 'HasRequest')
 
574
request_handlers.register_lazy(
 
575
    'hello', 'bzrlib.smart.request', 'HelloRequest')
 
576
request_handlers.register_lazy(
 
577
    'iter_files_recursive', 'bzrlib.smart.vfs', 'IterFilesRecursiveRequest')
 
578
request_handlers.register_lazy(
 
579
    'list_dir', 'bzrlib.smart.vfs', 'ListDirRequest')
 
580
request_handlers.register_lazy(
 
581
    'mkdir', 'bzrlib.smart.vfs', 'MkdirRequest')
 
582
request_handlers.register_lazy(
 
583
    'move', 'bzrlib.smart.vfs', 'MoveRequest')
 
584
request_handlers.register_lazy(
 
585
    'put', 'bzrlib.smart.vfs', 'PutRequest')
 
586
request_handlers.register_lazy(
 
587
    'put_non_atomic', 'bzrlib.smart.vfs', 'PutNonAtomicRequest')
 
588
request_handlers.register_lazy(
 
589
    'readv', 'bzrlib.smart.vfs', 'ReadvRequest')
 
590
request_handlers.register_lazy(
 
591
    'rename', 'bzrlib.smart.vfs', 'RenameRequest')
672
592
request_handlers.register_lazy(
673
593
    'PackRepository.autopack', 'bzrlib.smart.packrepository',
674
 
    'SmartServerPackRepositoryAutopack', info='idem')
675
 
request_handlers.register_lazy(
676
 
    'Repository.break_lock', 'bzrlib.smart.repository',
677
 
    'SmartServerRepositoryBreakLock', info='idem')
678
 
request_handlers.register_lazy(
679
 
    'Repository.gather_stats', 'bzrlib.smart.repository',
680
 
    'SmartServerRepositoryGatherStats', info='read')
681
 
request_handlers.register_lazy(
682
 
    'Repository.get_parent_map', 'bzrlib.smart.repository',
683
 
    'SmartServerRepositoryGetParentMap', info='read')
684
 
request_handlers.register_lazy(
685
 
    'Repository.get_revision_graph', 'bzrlib.smart.repository',
686
 
    'SmartServerRepositoryGetRevisionGraph', info='read')
687
 
request_handlers.register_lazy(
688
 
    'Repository.get_revision_signature_text', 'bzrlib.smart.repository',
689
 
    'SmartServerRepositoryGetRevisionSignatureText', info='read')
690
 
request_handlers.register_lazy(
691
 
    'Repository.has_revision', 'bzrlib.smart.repository',
692
 
    'SmartServerRequestHasRevision', info='read')
693
 
request_handlers.register_lazy(
694
 
    'Repository.has_signature_for_revision_id', 'bzrlib.smart.repository',
695
 
    'SmartServerRequestHasSignatureForRevisionId', info='read')
696
 
request_handlers.register_lazy(
697
 
    'Repository.insert_stream', 'bzrlib.smart.repository',
698
 
    'SmartServerRepositoryInsertStream', info='stream')
699
 
request_handlers.register_lazy(
700
 
    'Repository.insert_stream_1.19', 'bzrlib.smart.repository',
701
 
    'SmartServerRepositoryInsertStream_1_19', info='stream')
702
 
request_handlers.register_lazy(
703
 
    'Repository.insert_stream_locked', 'bzrlib.smart.repository',
704
 
    'SmartServerRepositoryInsertStreamLocked', info='stream')
705
 
request_handlers.register_lazy(
706
 
    'Repository.is_shared', 'bzrlib.smart.repository',
707
 
    'SmartServerRepositoryIsShared', info='read')
708
 
request_handlers.register_lazy(
709
 
    'Repository.iter_files_bytes', 'bzrlib.smart.repository',
710
 
    'SmartServerRepositoryIterFilesBytes', info='read')
711
 
request_handlers.register_lazy(
712
 
    'Repository.lock_write', 'bzrlib.smart.repository',
713
 
    'SmartServerRepositoryLockWrite', info='semi')
714
 
request_handlers.register_lazy(
715
 
    'Repository.make_working_trees', 'bzrlib.smart.repository',
716
 
    'SmartServerRepositoryMakeWorkingTrees', info='read')
 
594
    'SmartServerPackRepositoryAutopack')
 
595
request_handlers.register_lazy('Repository.gather_stats',
 
596
                               'bzrlib.smart.repository',
 
597
                               'SmartServerRepositoryGatherStats')
 
598
request_handlers.register_lazy('Repository.get_parent_map',
 
599
                               'bzrlib.smart.repository',
 
600
                               'SmartServerRepositoryGetParentMap')
 
601
request_handlers.register_lazy(
 
602
    'Repository.get_revision_graph', 'bzrlib.smart.repository', 'SmartServerRepositoryGetRevisionGraph')
 
603
request_handlers.register_lazy(
 
604
    'Repository.has_revision', 'bzrlib.smart.repository', 'SmartServerRequestHasRevision')
 
605
request_handlers.register_lazy(
 
606
    'Repository.insert_stream', 'bzrlib.smart.repository', 'SmartServerRepositoryInsertStream')
 
607
request_handlers.register_lazy(
 
608
    'Repository.insert_stream_1.19', 'bzrlib.smart.repository', 'SmartServerRepositoryInsertStream_1_19')
 
609
request_handlers.register_lazy(
 
610
    'Repository.insert_stream_locked', 'bzrlib.smart.repository', 'SmartServerRepositoryInsertStreamLocked')
 
611
request_handlers.register_lazy(
 
612
    'Repository.is_shared', 'bzrlib.smart.repository', 'SmartServerRepositoryIsShared')
 
613
request_handlers.register_lazy(
 
614
    'Repository.lock_write', 'bzrlib.smart.repository', 'SmartServerRepositoryLockWrite')
717
615
request_handlers.register_lazy(
718
616
    'Repository.set_make_working_trees', 'bzrlib.smart.repository',
719
 
    'SmartServerRepositorySetMakeWorkingTrees', info='idem')
720
 
request_handlers.register_lazy(
721
 
    'Repository.unlock', 'bzrlib.smart.repository',
722
 
    'SmartServerRepositoryUnlock', info='semi')
723
 
request_handlers.register_lazy(
724
 
    'Repository.get_physical_lock_status', 'bzrlib.smart.repository',
725
 
    'SmartServerRepositoryGetPhysicalLockStatus', info='read')
 
617
    'SmartServerRepositorySetMakeWorkingTrees')
 
618
request_handlers.register_lazy(
 
619
    'Repository.unlock', 'bzrlib.smart.repository', 'SmartServerRepositoryUnlock')
726
620
request_handlers.register_lazy(
727
621
    'Repository.get_rev_id_for_revno', 'bzrlib.smart.repository',
728
 
    'SmartServerRepositoryGetRevIdForRevno', info='read')
 
622
    'SmartServerRepositoryGetRevIdForRevno')
729
623
request_handlers.register_lazy(
730
624
    'Repository.get_stream', 'bzrlib.smart.repository',
731
 
    'SmartServerRepositoryGetStream', info='read')
 
625
    'SmartServerRepositoryGetStream')
732
626
request_handlers.register_lazy(
733
627
    'Repository.get_stream_1.19', 'bzrlib.smart.repository',
734
 
    'SmartServerRepositoryGetStream_1_19', info='read')
735
 
request_handlers.register_lazy(
736
 
    'Repository.iter_revisions', 'bzrlib.smart.repository',
737
 
    'SmartServerRepositoryIterRevisions', info='read')
738
 
request_handlers.register_lazy(
739
 
    'Repository.pack', 'bzrlib.smart.repository',
740
 
    'SmartServerRepositoryPack', info='idem')
741
 
request_handlers.register_lazy(
742
 
    'Repository.start_write_group', 'bzrlib.smart.repository',
743
 
    'SmartServerRepositoryStartWriteGroup', info='semi')
744
 
request_handlers.register_lazy(
745
 
    'Repository.commit_write_group', 'bzrlib.smart.repository',
746
 
    'SmartServerRepositoryCommitWriteGroup', info='semi')
747
 
request_handlers.register_lazy(
748
 
    'Repository.abort_write_group', 'bzrlib.smart.repository',
749
 
    'SmartServerRepositoryAbortWriteGroup', info='semi')
750
 
request_handlers.register_lazy(
751
 
    'Repository.check_write_group', 'bzrlib.smart.repository',
752
 
    'SmartServerRepositoryCheckWriteGroup', info='read')
753
 
request_handlers.register_lazy(
754
 
    'Repository.reconcile', 'bzrlib.smart.repository',
755
 
    'SmartServerRepositoryReconcile', info='idem')
 
628
    'SmartServerRepositoryGetStream_1_19')
756
629
request_handlers.register_lazy(
757
630
    'Repository.tarball', 'bzrlib.smart.repository',
758
 
    'SmartServerRepositoryTarball', info='read')
759
 
request_handlers.register_lazy(
760
 
    'VersionedFileRepository.get_serializer_format', 'bzrlib.smart.repository',
761
 
    'SmartServerRepositoryGetSerializerFormat', info='read')
762
 
request_handlers.register_lazy(
763
 
    'VersionedFileRepository.get_inventories', 'bzrlib.smart.repository',
764
 
    'SmartServerRepositoryGetInventories', info='read')
765
 
request_handlers.register_lazy(
766
 
    'rmdir', 'bzrlib.smart.vfs', 'RmdirRequest', info='semivfs')
767
 
request_handlers.register_lazy(
768
 
    'stat', 'bzrlib.smart.vfs', 'StatRequest', info='read')
769
 
request_handlers.register_lazy(
770
 
    'Transport.is_readonly', 'bzrlib.smart.request',
771
 
    'SmartServerIsReadonly', info='read')
 
631
    'SmartServerRepositoryTarball')
 
632
request_handlers.register_lazy(
 
633
    'rmdir', 'bzrlib.smart.vfs', 'RmdirRequest')
 
634
request_handlers.register_lazy(
 
635
    'stat', 'bzrlib.smart.vfs', 'StatRequest')
 
636
request_handlers.register_lazy(
 
637
    'Transport.is_readonly', 'bzrlib.smart.request', 'SmartServerIsReadonly')