/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: Jelmer Vernooij
  • Date: 2019-09-25 19:11:10 UTC
  • mto: This revision was merged to the branch mainline in revision 7397.
  • Revision ID: jelmer@jelmer.uk-20190925191110-k9spkvt5tor4rvtd
Remove the unused has_or_had_id call.

Show diffs side-by-side

added added

removed removed

Lines of Context:
594
594
            raise
595
595
        self._index_dirty = False
596
596
 
597
 
    def has_or_had_id(self, file_id):
598
 
        if self.has_id(file_id):
599
 
            return True
600
 
        if self.had_id(file_id):
601
 
            return True
602
 
        return False
603
 
 
604
 
    def had_id(self, file_id):
605
 
        try:
606
 
            path = self.mapping.parse_file_id(file_id)
607
 
        except ValueError:
608
 
            return False
609
 
        try:
610
 
            head = self.repository._git.head()
611
 
        except KeyError:
612
 
            # Assume no if basis is not accessible
613
 
            return False
614
 
        try:
615
 
            root_tree = self.store[head].tree
616
 
        except KeyError:
617
 
            return False
618
 
        try:
619
 
            tree_lookup_path(self.store.__getitem__,
620
 
                             root_tree, path.encode('utf-8'))
621
 
        except KeyError:
622
 
            return False
623
 
        else:
624
 
            return True
625
 
 
626
597
    def get_file_mtime(self, path):
627
598
        """See Tree.get_file_mtime."""
628
599
        try: