/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/bzr/inventorytree.py

  • Committer: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2020-01-19 04:16:09 UTC
  • mfrom: (7447.4.2 reference-info-file-id)
  • Revision ID: breezy.the.bot@gmail.com-20200119041609-3lik1tsdsln5stab
Store bzr reference information by file id rather than by path.

Merged from https://code.launchpad.net/~jelmer/brz/reference-info-file-id/+merge/377801

Show diffs side-by-side

added added

removed removed

Lines of Context:
790
790
 
791
791
    def reference_parent(self, path, branch=None, possible_transports=None):
792
792
        if branch is not None:
793
 
            parent_url = branch.get_reference_info(path)[0]
 
793
            file_id = self.path2id(path)
 
794
            parent_url = branch.get_reference_info(file_id)[0]
794
795
        else:
795
796
            subdir = ControlDir.open_from_transport(
796
797
                self._repository.user_transport.clone(path))
802
803
            possible_transports=possible_transports)
803
804
 
804
805
    def get_reference_info(self, path, branch=None):
805
 
        return branch.get_reference_info(path)[0]
 
806
        return branch.get_reference_info(self.path2id(path))[0]
806
807
 
807
808
    def list_files(self, include_root=False, from_dir=None, recursive=True,
808
809
                   recurse_nested=False):