/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 breezy/vf_repository.py

  • Committer: Jelmer Vernooij
  • Date: 2017-05-21 18:10:28 UTC
  • mto: This revision was merged to the branch mainline in revision 6623.
  • Revision ID: jelmer@jelmer.uk-20170521181028-zn04pdfw0od9hfj3
Rename brzlib => breezy.

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
from __future__ import absolute_import
20
20
 
21
21
 
22
 
from brzlib.lazy_import import lazy_import
 
22
from breezy.lazy_import import lazy_import
23
23
lazy_import(globals(), """
24
24
import itertools
25
25
 
26
 
from brzlib import (
 
26
from breezy import (
27
27
    check,
28
28
    config as _mod_config,
29
29
    debug,
44
44
    vf_search,
45
45
    )
46
46
 
47
 
from brzlib.recordcounter import RecordCounter
48
 
from brzlib.revisiontree import InventoryRevisionTree
49
 
from brzlib.testament import Testament
50
 
from brzlib.i18n import gettext
 
47
from breezy.recordcounter import RecordCounter
 
48
from breezy.revisiontree import InventoryRevisionTree
 
49
from breezy.testament import Testament
 
50
from breezy.i18n import gettext
51
51
""")
52
52
 
53
 
from brzlib import (
 
53
from breezy import (
54
54
    errors,
55
55
    )
56
 
from brzlib.decorators import (
 
56
from breezy.decorators import (
57
57
    needs_read_lock,
58
58
    needs_write_lock,
59
59
    only_raises,
60
60
    )
61
 
from brzlib.inventory import (
 
61
from breezy.inventory import (
62
62
    Inventory,
63
63
    InventoryDirectory,
64
64
    ROOT_ID,
65
65
    entry_factory,
66
66
    )
67
67
 
68
 
from brzlib.repository import (
 
68
from breezy.repository import (
69
69
    CommitBuilder,
70
70
    InterRepository,
71
71
    MetaDirRepository,
74
74
    RepositoryFormat,
75
75
    )
76
76
 
77
 
from brzlib.trace import (
 
77
from breezy.trace import (
78
78
    mutter
79
79
    )
80
80
 
884
884
    byte string made up of a hash identifier and a hash value.
885
885
    We use this interface because it allows low friction with the underlying
886
886
    code that implements disk indices, network encoding and other parts of
887
 
    brzlib.
 
887
    breezy.
888
888
 
889
 
    :ivar revisions: A brzlib.versionedfile.VersionedFiles instance containing
 
889
    :ivar revisions: A breezy.versionedfile.VersionedFiles instance containing
890
890
        the serialised revisions for the repository. This can be used to obtain
891
891
        revision graph information or to access raw serialised revisions.
892
892
        The result of trying to insert data into the repository via this store
893
893
        is undefined: it should be considered read-only except for implementors
894
894
        of repositories.
895
 
    :ivar signatures: A brzlib.versionedfile.VersionedFiles instance containing
 
895
    :ivar signatures: A breezy.versionedfile.VersionedFiles instance containing
896
896
        the serialised signatures for the repository. This can be used to
897
897
        obtain access to raw serialised signatures.  The result of trying to
898
898
        insert data into the repository via this store is undefined: it should
899
899
        be considered read-only except for implementors of repositories.
900
 
    :ivar inventories: A brzlib.versionedfile.VersionedFiles instance containing
 
900
    :ivar inventories: A breezy.versionedfile.VersionedFiles instance containing
901
901
        the serialised inventories for the repository. This can be used to
902
902
        obtain unserialised inventories.  The result of trying to insert data
903
903
        into the repository via this store is undefined: it should be
904
904
        considered read-only except for implementors of repositories.
905
 
    :ivar texts: A brzlib.versionedfile.VersionedFiles instance containing the
 
905
    :ivar texts: A breezy.versionedfile.VersionedFiles instance containing the
906
906
        texts of files and directories for the repository. This can be used to
907
907
        obtain file texts or file graphs. Note that Repository.iter_file_bytes
908
908
        is usually a better interface for accessing file texts.
909
909
        The result of trying to insert data into the repository via this store
910
910
        is undefined: it should be considered read-only except for implementors
911
911
        of repositories.
912
 
    :ivar chk_bytes: A brzlib.versionedfile.VersionedFiles instance containing
 
912
    :ivar chk_bytes: A breezy.versionedfile.VersionedFiles instance containing
913
913
        any data the repository chooses to store or have indexed by its hash.
914
914
        The result of trying to insert data into the repository via this store
915
915
        is undefined: it should be considered read-only except for implementors
2572
2572
            ui.ui_factory.show_user_warning('experimental_format_fetch',
2573
2573
                from_format=self.source._format,
2574
2574
                to_format=self.target._format)
2575
 
        from brzlib.fetch import RepoFetcher
 
2575
        from breezy.fetch import RepoFetcher
2576
2576
        # See <https://launchpad.net/bugs/456077> asking for a warning here
2577
2577
        if self.source._format.network_name() != self.target._format.network_name():
2578
2578
            ui.ui_factory.show_user_warning('cross_format_fetch',
2660
2660
            to fetch for tags, which may reference absent revisions.
2661
2661
        :param find_ghosts: If True find missing revisions in deep history
2662
2662
            rather than just finding the surface difference.
2663
 
        :return: A brzlib.graph.SearchResult.
 
2663
        :return: A breezy.graph.SearchResult.
2664
2664
        """
2665
2665
        if symbol_versioning.deprecated_passed(revision_id):
2666
2666
            symbol_versioning.warn(
3095
3095
        InterSameData can pull from subtree to subtree and from non-subtree to
3096
3096
        non-subtree, so we test this with the richest repository format.
3097
3097
        """
3098
 
        from brzlib.repofmt import knitrepo
 
3098
        from breezy.repofmt import knitrepo
3099
3099
        return knitrepo.RepositoryFormatKnit3()
3100
3100
 
3101
3101
    @staticmethod