/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/git/workingtree.py

  • Committer: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2018-11-16 23:38:56 UTC
  • mfrom: (7170.3.2 optional-all-file-ids)
  • Revision ID: breezy.the.bot@gmail.com-20181116233856-sgktuah3dmjwjqna
Make implementing Tree.all_file_ids() optional.

Merged from https://code.launchpad.net/~jelmer/brz/optional-all-file-ids/+merge/358932

Show diffs side-by-side

added added

removed removed

Lines of Context:
833
833
                                                               self.is_ignored(path) else "?"), kind, None, ie)
834
834
 
835
835
    def all_file_ids(self):
836
 
        with self.lock_read():
837
 
            ids = {u"": self.path2id("")}
838
 
            for path in self.index:
839
 
                if self.mapping.is_special_file(path):
840
 
                    continue
841
 
                path = path.decode("utf-8")
842
 
                parent = posixpath.dirname(path).strip("/")
843
 
                for e in self._add_missing_parent_ids(parent, ids):
844
 
                    pass
845
 
                ids[path] = self.path2id(path)
846
 
            return set(ids.values())
 
836
        raise errors.UnsupportedOperation(self.all_file_ids, self)
847
837
 
848
838
    def all_versioned_paths(self):
849
839
        with self.lock_read():