19
19
from __future__ import absolute_import
22
from brzlib.lazy_import import lazy_import
22
from breezy.lazy_import import lazy_import
23
23
lazy_import(globals(), """
28
28
config as _mod_config,
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
56
from brzlib.decorators import (
56
from breezy.decorators import (
61
from brzlib.inventory import (
61
from breezy.inventory import (
63
63
InventoryDirectory,
68
from brzlib.repository import (
68
from breezy.repository import (
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
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
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
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.
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.
3098
from brzlib.repofmt import knitrepo
3098
from breezy.repofmt import knitrepo
3099
3099
return knitrepo.RepositoryFormatKnit3()